diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:10:05 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-07-31 08:01:29 -0400 |
commit | 334a41ce9b753ec615e8c6c50ee07d6197190610 (patch) | |
tree | a56c8e04be30b8839ba11179ceffaad0b0bb8bc2 /drivers/mfd/sta2x11-mfd.c | |
parent | 3e4f8789946de61c61ce6a373d069d55725d956c (diff) |
mfd: Use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
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; |