Commit 17cf8b429341869c154268f9d92d32a74295a29a
1 parent
e45be4b5fc
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/regulator/db8500-prcmu.c
... | ... | @@ -13,7 +13,6 @@ |
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> |
... | ... | @@ -471,7 +470,8 @@ |
471 | 470 | |
472 | 471 | static 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 | 475 | int i, err; |
476 | 476 | |
477 | 477 | /* register all regulators */ |