diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-05-24 05:11:46 +0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-05-31 05:19:34 +0400 |
commit | c0431037b4492e8c82b50f72ce127b74776433c2 (patch) | |
tree | e7eb9a4705a0173782b48701a78528dbd74486d2 /drivers/clk/clk-wm831x.c | |
parent | 4bcccf193dae6afd0ac78bb89c6e4b0b8324e9d4 (diff) | |
download | linux-c0431037b4492e8c82b50f72ce127b74776433c2.tar.xz |
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-wm831x.c')
-rw-r--r-- | drivers/clk/clk-wm831x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-wm831x.c b/drivers/clk/clk-wm831x.c index 58d08a640275..1b3f8c9b98cc 100644 --- a/drivers/clk/clk-wm831x.c +++ b/drivers/clk/clk-wm831x.c @@ -384,7 +384,7 @@ static int wm831x_clk_probe(struct platform_device *pdev) if (IS_ERR(clkdata->clkout)) return PTR_ERR(clkdata->clkout); - dev_set_drvdata(&pdev->dev, clkdata); + platform_set_drvdata(pdev, clkdata); return 0; } |