aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-twl6040.c4
-rw-r--r--drivers/clk/clk-wm831x.c2
2 files changed, 3 insertions, 3 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)
95 if (IS_ERR(clkdata->clk)) 95 if (IS_ERR(clkdata->clk))
96 return PTR_ERR(clkdata->clk); 96 return PTR_ERR(clkdata->clk);
97 97
98 dev_set_drvdata(&pdev->dev, clkdata); 98 platform_set_drvdata(pdev, clkdata);
99 99
100 return 0; 100 return 0;
101} 101}
102 102
103static int twl6040_clk_remove(struct platform_device *pdev) 103static int twl6040_clk_remove(struct platform_device *pdev)
104{ 104{
105 struct twl6040_clk *clkdata = dev_get_drvdata(&pdev->dev); 105 struct twl6040_clk *clkdata = platform_get_drvdata(pdev);
106 106
107 clk_unregister(clkdata->clk); 107 clk_unregister(clkdata->clk);
108 108
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)
384 if (IS_ERR(clkdata->clkout)) 384 if (IS_ERR(clkdata->clkout))
385 return PTR_ERR(clkdata->clkout); 385 return PTR_ERR(clkdata->clkout);
386 386
387 dev_set_drvdata(&pdev->dev, clkdata); 387 platform_set_drvdata(pdev, clkdata);
388 388
389 return 0; 389 return 0;
390} 390}