Skip to content
Snippets Groups Projects
Commit 2da19b1a authored by Tomeu Vizoso's avatar Tomeu Vizoso Committed by MyungJoo Ham
Browse files

PM / devfreq: tegra: Set drvdata before enabling the irq


To avoid a race in which the interrupt will be handled before the
drvdata has been set up.

Signed-off-by: default avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent 5d498b46
No related branches found
No related tags found
No related merge requests found
......@@ -697,6 +697,8 @@ static int tegra_devfreq_probe(struct platform_device *pdev)
return -ENODEV;
}
platform_set_drvdata(pdev, tegra);
err = devm_request_threaded_irq(&pdev->dev, irq, actmon_isr,
actmon_thread_isr, IRQF_SHARED,
"tegra-devfreq", tegra);
......@@ -705,8 +707,6 @@ static int tegra_devfreq_probe(struct platform_device *pdev)
return err;
}
platform_set_drvdata(pdev, tegra);
tegra_devfreq_profile.initial_freq = clk_get_rate(tegra->emc_clock);
tegra->devfreq = devm_devfreq_add_device(&pdev->dev,
&tegra_devfreq_profile,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment