diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 0fee58e85..0cc9564bf 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -1397,9 +1397,11 @@ static int gk20a_probe(struct platform_device *dev) spin_lock_init(&gk20a->mc_enable_lock); +#ifdef CONFIG_RESET_CONTROLLER platform->reset_control = devm_reset_control_get(&dev->dev, NULL); if (IS_ERR(platform->reset_control)) platform->reset_control = NULL; +#endif gk20a_debug_init(dev); diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 84b3fcafc..6bffed9ed 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h @@ -59,8 +59,10 @@ struct gk20a_platform { struct clk *clk[3]; int num_clks; +#ifdef CONFIG_RESET_CONTROLLER /* Reset control for device */ struct reset_control *reset_control; +#endif /* Delay before rail gated */ int railgate_delay;