regulator: Use device platform_data to retrieve db8500 platform bits
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 26 May 2011 08:06:31 +0000 (10:06 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 26 May 2011 17:45:15 +0000 (19:45 +0200)
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>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/regulator/db8500-prcmu.c

index 1089a961616e093179e676bccb14b139e0de5d0d..e5f7b8fe51f4b74fe4a71599043e4b396823ee19 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/err.h>
 #include <linux/spinlock.h>
 #include <linux/platform_device.h>
-#include <linux/mfd/core.h>
 #include <linux/mfd/db8500-prcmu.h>
 #include <linux/regulator/driver.h>
 #include <linux/regulator/machine.h>
@@ -471,7 +470,8 @@ static struct db8500_regulator_info
 
 static int __devinit db8500_regulator_probe(struct platform_device *pdev)
 {
-       struct regulator_init_data *db8500_init_data = mfd_get_data(pdev);
+       struct regulator_init_data *db8500_init_data =
+                                       dev_get_platdata(&pdev->dev);
        int i, err;
 
        /* register all regulators */