summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-twl6040.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-24 10:11:46 +0900
committerMike Turquette <mturquette@linaro.org>2013-05-30 18:19:34 -0700
commitc0431037b4492e8c82b50f72ce127b74776433c2 (patch)
treee7eb9a4705a0173782b48701a78528dbd74486d2 /drivers/clk/clk-twl6040.c
parent4bcccf193dae6afd0ac78bb89c6e4b0b8324e9d4 (diff)
clk: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk-twl6040.c')
-rw-r--r--drivers/clk/clk-twl6040.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c
index 3af729b1b89d..1ada79a28052 100644
--- a/drivers/clk/clk-twl6040.c
+++ b/drivers/clk/clk-twl6040.c
@@ -95,14 +95,14 @@ static int twl6040_clk_probe(struct platform_device *pdev)
if (IS_ERR(clkdata->clk))
return PTR_ERR(clkdata->clk);
- dev_set_drvdata(&pdev->dev, clkdata);
+ platform_set_drvdata(pdev, clkdata);
return 0;
}
static int twl6040_clk_remove(struct platform_device *pdev)
{
- struct twl6040_clk *clkdata = dev_get_drvdata(&pdev->dev);
+ struct twl6040_clk *clkdata = platform_get_drvdata(pdev);
clk_unregister(clkdata->clk);