Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/regulator/db8500-prcmu.c
··· 13 13 #include <linux/err.h> 14 14 #include <linux/spinlock.h> 15 15 #include <linux/platform_device.h> 16 - #include <linux/mfd/core.h> 17 16 #include <linux/mfd/db8500-prcmu.h> 18 17 #include <linux/regulator/driver.h> 19 18 #include <linux/regulator/machine.h> ··· 470 471 471 472 static int __devinit db8500_regulator_probe(struct platform_device *pdev) 472 473 { 473 - struct regulator_init_data *db8500_init_data = mfd_get_data(pdev); 474 + struct regulator_init_data *db8500_init_data = 475 + dev_get_platdata(&pdev->dev); 474 476 int i, err; 475 477 476 478 /* register all regulators */