aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-05-26 04:06:31 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 13:45:15 -0400
commit17cf8b429341869c154268f9d92d32a74295a29a (patch)
tree8069a3a38eb640eef326e4e4cda468dc23f3bf90 /drivers/regulator
parente45be4b5fcccb241101ad1aa1e15581ad2071393 (diff)
regulator: Use device platform_data to retrieve db8500 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> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/db8500-prcmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/db8500-prcmu.c b/drivers/regulator/db8500-prcmu.c
index 1089a961616e..e5f7b8fe51f4 100644
--- a/drivers/regulator/db8500-prcmu.c
+++ b/drivers/regulator/db8500-prcmu.c
@@ -13,7 +13,6 @@
13#include <linux/err.h> 13#include <linux/err.h>
14#include <linux/spinlock.h> 14#include <linux/spinlock.h>
15#include <linux/platform_device.h> 15#include <linux/platform_device.h>
16#include <linux/mfd/core.h>
17#include <linux/mfd/db8500-prcmu.h> 16#include <linux/mfd/db8500-prcmu.h>
18#include <linux/regulator/driver.h> 17#include <linux/regulator/driver.h>
19#include <linux/regulator/machine.h> 18#include <linux/regulator/machine.h>
@@ -471,7 +470,8 @@ static struct db8500_regulator_info
471 470
472static int __devinit db8500_regulator_probe(struct platform_device *pdev) 471static int __devinit db8500_regulator_probe(struct platform_device *pdev)
473{ 472{
474 struct regulator_init_data *db8500_init_data = mfd_get_data(pdev); 473 struct regulator_init_data *db8500_init_data =
474 dev_get_platdata(&pdev->dev);
475 int i, err; 475 int i, err;
476 476
477 /* register all regulators */ 477 /* register all regulators */