From 5d664a832ff18734e702eba1c2c070c23290fd68 Mon Sep 17 00:00:00 2001 From: Alexandre Courbot Date: Fri, 20 Nov 2015 17:32:03 +0900 Subject: clk/gm20b: #ifdef Tegra-specific code --- drm/nouveau/nvkm/subdev/clk/gm20b.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +} -- cgit v1.2.1