diff options
Diffstat (limited to 'drivers/mfd/sta2x11-mfd.c')
-rw-r--r-- | drivers/mfd/sta2x11-mfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c index d70a343078fd..65c6fa671acb 100644 --- a/drivers/mfd/sta2x11-mfd.c +++ b/drivers/mfd/sta2x11-mfd.c | |||
@@ -133,7 +133,7 @@ int sta2x11_mfd_get_regs_data(struct platform_device *dev, | |||
133 | void __iomem **regs, | 133 | void __iomem **regs, |
134 | spinlock_t **lock) | 134 | spinlock_t **lock) |
135 | { | 135 | { |
136 | struct pci_dev *pdev = *(struct pci_dev **)(dev->dev.platform_data); | 136 | struct pci_dev *pdev = *(struct pci_dev **)dev_get_platdata(&dev->dev); |
137 | struct sta2x11_mfd *mfd; | 137 | struct sta2x11_mfd *mfd; |
138 | 138 | ||
139 | if (!pdev) | 139 | if (!pdev) |
@@ -312,7 +312,7 @@ static int sta2x11_mfd_platform_probe(struct platform_device *dev, | |||
312 | const char *name = sta2x11_mfd_names[index]; | 312 | const char *name = sta2x11_mfd_names[index]; |
313 | struct regmap_config *regmap_config = sta2x11_mfd_regmap_configs[index]; | 313 | struct regmap_config *regmap_config = sta2x11_mfd_regmap_configs[index]; |
314 | 314 | ||
315 | pdev = dev->dev.platform_data; | 315 | pdev = dev_get_platdata(&dev->dev); |
316 | mfd = sta2x11_mfd_find(*pdev); | 316 | mfd = sta2x11_mfd_find(*pdev); |
317 | if (!mfd) | 317 | if (!mfd) |
318 | return -ENODEV; | 318 | return -ENODEV; |