diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-04-05 18:41:43 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-05-26 13:44:58 -0400 |
commit | a771e36e16e9fdacb2bb8d3b9be50be68f211b82 (patch) | |
tree | 279c9c6df6d6f11f4a6fcb9af8acc74a6ee7f568 /drivers/regulator | |
parent | 1f235a3785dbcfb324ff228048b859a3bd1e1a59 (diff) |
mfd: Use mfd cell platform_data for ab3100 cells platform bits
With the addition of a platform device mfd_cell pointer, MFD drivers
can go back to passing platform data back to their sub drivers.
This allows for an mfd_cell->mfd_data removal and thus keep the sub drivers
MFD agnostic. This is mostly needed for non MFD aware sub drivers.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/ab3100.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/regulator/ab3100.c b/drivers/regulator/ab3100.c index b1d77946e9c6..585e4946fe0a 100644 --- a/drivers/regulator/ab3100.c +++ b/drivers/regulator/ab3100.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | #include <linux/regulator/driver.h> | 18 | #include <linux/regulator/driver.h> |
19 | #include <linux/mfd/abx500.h> | 19 | #include <linux/mfd/abx500.h> |
20 | #include <linux/mfd/core.h> | ||
21 | 20 | ||
22 | /* LDO registers and some handy masking definitions for AB3100 */ | 21 | /* LDO registers and some handy masking definitions for AB3100 */ |
23 | #define AB3100_LDO_A 0x40 | 22 | #define AB3100_LDO_A 0x40 |
@@ -582,7 +581,7 @@ ab3100_regulator_desc[AB3100_NUM_REGULATORS] = { | |||
582 | 581 | ||
583 | static int __devinit ab3100_regulators_probe(struct platform_device *pdev) | 582 | static int __devinit ab3100_regulators_probe(struct platform_device *pdev) |
584 | { | 583 | { |
585 | struct ab3100_platform_data *plfdata = mfd_get_data(pdev); | 584 | struct ab3100_platform_data *plfdata = pdev->dev.platform_data; |
586 | int err = 0; | 585 | int err = 0; |
587 | u8 data; | 586 | u8 data; |
588 | int i; | 587 | int i; |