diff options
Diffstat (limited to 'drivers/mfd/tc6387xb.c')
-rw-r--r-- | drivers/mfd/tc6387xb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/tc6387xb.c b/drivers/mfd/tc6387xb.c index 65c425a517c5..acd0f3a41044 100644 --- a/drivers/mfd/tc6387xb.c +++ b/drivers/mfd/tc6387xb.c | |||
@@ -48,7 +48,7 @@ static struct resource tc6387xb_mmc_resources[] = { | |||
48 | static int tc6387xb_suspend(struct platform_device *dev, pm_message_t state) | 48 | static int tc6387xb_suspend(struct platform_device *dev, pm_message_t state) |
49 | { | 49 | { |
50 | struct tc6387xb *tc6387xb = platform_get_drvdata(dev); | 50 | struct tc6387xb *tc6387xb = platform_get_drvdata(dev); |
51 | struct tc6387xb_platform_data *pdata = dev->dev.platform_data; | 51 | struct tc6387xb_platform_data *pdata = dev_get_platdata(&dev->dev); |
52 | 52 | ||
53 | if (pdata && pdata->suspend) | 53 | if (pdata && pdata->suspend) |
54 | pdata->suspend(dev); | 54 | pdata->suspend(dev); |
@@ -60,7 +60,7 @@ static int tc6387xb_suspend(struct platform_device *dev, pm_message_t state) | |||
60 | static int tc6387xb_resume(struct platform_device *dev) | 60 | static int tc6387xb_resume(struct platform_device *dev) |
61 | { | 61 | { |
62 | struct tc6387xb *tc6387xb = platform_get_drvdata(dev); | 62 | struct tc6387xb *tc6387xb = platform_get_drvdata(dev); |
63 | struct tc6387xb_platform_data *pdata = dev->dev.platform_data; | 63 | struct tc6387xb_platform_data *pdata = dev_get_platdata(&dev->dev); |
64 | 64 | ||
65 | clk_enable(tc6387xb->clk32k); | 65 | clk_enable(tc6387xb->clk32k); |
66 | if (pdata && pdata->resume) | 66 | if (pdata && pdata->resume) |
@@ -140,7 +140,7 @@ static struct mfd_cell tc6387xb_cells[] = { | |||
140 | 140 | ||
141 | static int tc6387xb_probe(struct platform_device *dev) | 141 | static int tc6387xb_probe(struct platform_device *dev) |
142 | { | 142 | { |
143 | struct tc6387xb_platform_data *pdata = dev->dev.platform_data; | 143 | struct tc6387xb_platform_data *pdata = dev_get_platdata(&dev->dev); |
144 | struct resource *iomem, *rscr; | 144 | struct resource *iomem, *rscr; |
145 | struct clk *clk32k; | 145 | struct clk *clk32k; |
146 | struct tc6387xb *tc6387xb; | 146 | struct tc6387xb *tc6387xb; |