mfd: ab8500-core: Add AB8500 external regulators as MFD devices
authorLee Jones <lee.jones@linaro.org>
Fri, 7 Jun 2013 15:07:47 +0000 (16:07 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 13 Jun 2013 09:52:00 +0000 (10:52 +0100)
The AB8500 external regulator driver is now a device in its own right,
so it requires registering and probing in the normal way. This patch
will ensure the driver is probed once registered for all devices which
support them.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-core.c

index ca6bd1c..b6c2cdc 100644 (file)
@@ -1066,6 +1066,10 @@ static struct mfd_cell ab8500_devs[] = {
                .of_compatible = "stericsson,ab8500-sysctrl",
        },
        {
+               .name = "ab8500-ext-regulator",
+               .of_compatible = "stericsson,ab8500-ext-regulator",
+       },
+       {
                .name = "ab8500-regulator",
                .of_compatible = "stericsson,ab8500-regulator",
        },
@@ -1151,6 +1155,9 @@ static struct mfd_cell ab9540_devs[] = {
                .name = "ab8500-sysctrl",
        },
        {
+               .name = "ab8500-ext-regulator",
+       },
+       {
                .name = "ab8500-regulator",
        },
        {
@@ -1280,6 +1287,9 @@ static struct mfd_cell ab8540_devs[] = {
                .name = "ab8500-sysctrl",
        },
        {
+               .name = "ab8500-ext-regulator",
+       },
+       {
                .name = "ab8500-regulator",
        },
        {