diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-05-08 09:29:09 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-05-16 18:42:33 -0400 |
commit | 955de2eab3fd89bc6d5735817710926ba5817450 (patch) | |
tree | 2f3bc01040812feab04b2f80543df15054cb2e71 /drivers/mfd/ab8500-core.c | |
parent | a3ef0deb0fa45781ab653d7c9271e02c152076f1 (diff) |
mfd: ab8500-core: Pass GPADC compatible string to MFD core
When booting with Device Tree enabled the MFD core uses each device's
compatible string to find and allocate its associated of_node pointer,
which in turn is passed to the driver via the platform_device struct.
Without it, the driver won't be able to interrogate the Device Tree or
locate suitable regulators and will most likely fail to probe.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/ab8500-core.c')
-rw-r--r-- | drivers/mfd/ab8500-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 1183e6d6f583..258b367e3989 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c | |||
@@ -1060,6 +1060,7 @@ static struct mfd_cell ab8500_devs[] = { | |||
1060 | }, | 1060 | }, |
1061 | { | 1061 | { |
1062 | .name = "ab8500-gpadc", | 1062 | .name = "ab8500-gpadc", |
1063 | .of_compatible = "stericsson,ab8500-gpadc", | ||
1063 | .num_resources = ARRAY_SIZE(ab8500_gpadc_resources), | 1064 | .num_resources = ARRAY_SIZE(ab8500_gpadc_resources), |
1064 | .resources = ab8500_gpadc_resources, | 1065 | .resources = ab8500_gpadc_resources, |
1065 | }, | 1066 | }, |
@@ -1217,6 +1218,7 @@ static struct mfd_cell ab8505_devs[] = { | |||
1217 | }, | 1218 | }, |
1218 | { | 1219 | { |
1219 | .name = "ab8500-gpadc", | 1220 | .name = "ab8500-gpadc", |
1221 | .of_compatible = "stericsson,ab8500-gpadc", | ||
1220 | .num_resources = ARRAY_SIZE(ab8505_gpadc_resources), | 1222 | .num_resources = ARRAY_SIZE(ab8505_gpadc_resources), |
1221 | .resources = ab8505_gpadc_resources, | 1223 | .resources = ab8505_gpadc_resources, |
1222 | }, | 1224 | }, |
@@ -1280,6 +1282,7 @@ static struct mfd_cell ab8540_devs[] = { | |||
1280 | }, | 1282 | }, |
1281 | { | 1283 | { |
1282 | .name = "ab8500-gpadc", | 1284 | .name = "ab8500-gpadc", |
1285 | .of_compatible = "stericsson,ab8500-gpadc", | ||
1283 | .num_resources = ARRAY_SIZE(ab8505_gpadc_resources), | 1286 | .num_resources = ARRAY_SIZE(ab8505_gpadc_resources), |
1284 | .resources = ab8505_gpadc_resources, | 1287 | .resources = ab8505_gpadc_resources, |
1285 | }, | 1288 | }, |