diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2015-11-20 17:32:03 +0900 |
---|---|---|
committer | Alexandre Courbot <acourbot@nvidia.com> | 2015-12-18 15:17:53 +0900 |
commit | bfe713afefe4cb1264fc53be219c5c05a6077409 (patch) | |
tree | 7c0246fa730e0558be962289136055ca64054813 | |
parent | 341296dc02849e2862b28181134ea9be65a5d010 (diff) | |
download | nouveau-bfe713afefe4cb1264fc53be219c5c05a6077409.tar.gz |
clk/gm20b: #ifdef Tegra-specific code
-rw-r--r-- | drm/nouveau/nvkm/subdev/clk/gm20b.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drm/nouveau/nvkm/subdev/clk/gm20b.c b/drm/nouveau/nvkm/subdev/clk/gm20b.c index d3a81dca6..8ee6c4cb6 100644 --- a/drm/nouveau/nvkm/subdev/clk/gm20b.c +++ b/drm/nouveau/nvkm/subdev/clk/gm20b.c @@ -1231,6 +1231,7 @@ gm20b_clk_init(struct nvkm_clk *base) static int gm20b_clk_init_fused_params(struct gm20b_clk *priv) { +#ifdef CONFIG_TEGRA struct gm20b_pllg_fused_params *p = &priv->fused_params; u32 val; @@ -1252,6 +1253,7 @@ gm20b_clk_init_fused_params(struct gm20b_clk *priv) return 0; } +#endif /* If no fused parameters, we will try internal calibration later */ return -EINVAL; @@ -1351,4 +1353,4 @@ gm20b_clk_new(struct nvkm_device *device, int index, struct nvkm_clk **pclk) clk->pldiv_glitchless_supported = true; return ret; -}
\ No newline at end of file +} |