diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-05-07 06:29:55 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-05-16 18:42:32 -0400 |
commit | eb696c3181dd5b2266794776519120abdfe127d9 (patch) | |
tree | dee003c832467431d40533618a39e759c2c5852f /drivers/mfd/ab8500-core.c | |
parent | 6999181eecb11863b78030c68037a9f851522735 (diff) |
mfd: ab8500-core: Use the correct driver name when enabling gpio/pinctrl
When we're using Device Tree to enable GPIO drivers we're forced to be
OS agnostic, thus we are forbidden use names like pinctrl as they are
specific only to Linux, at least for the time being. However, when we
are registering devices using internal systems such as MFD or platform
registration, we can use such terminology. In this case we can and
should use the platform device ID mechanism to specify which device we
wish to utilise by detailing pinctrl-<device_name>.
This patch fixes a regression that when booting with Device Tree
enabled the ABx500 GPIO/Pinctrl devices are not probed.
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 65cd46bbe336..1183e6d6f583 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c | |||
@@ -1106,7 +1106,7 @@ static struct mfd_cell ab8500_devs[] = { | |||
1106 | .of_compatible = "stericsson,ab8500-denc", | 1106 | .of_compatible = "stericsson,ab8500-denc", |
1107 | }, | 1107 | }, |
1108 | { | 1108 | { |
1109 | .name = "ab8500-gpio", | 1109 | .name = "pinctrl-ab8500", |
1110 | .of_compatible = "stericsson,ab8500-gpio", | 1110 | .of_compatible = "stericsson,ab8500-gpio", |
1111 | }, | 1111 | }, |
1112 | { | 1112 | { |
@@ -1243,7 +1243,7 @@ static struct mfd_cell ab8505_devs[] = { | |||
1243 | .name = "ab8500-leds", | 1243 | .name = "ab8500-leds", |
1244 | }, | 1244 | }, |
1245 | { | 1245 | { |
1246 | .name = "ab8500-gpio", | 1246 | .name = "pinctrl-ab8505", |
1247 | }, | 1247 | }, |
1248 | { | 1248 | { |
1249 | .name = "ab8500-usb", | 1249 | .name = "ab8500-usb", |
@@ -1311,7 +1311,7 @@ static struct mfd_cell ab8540_devs[] = { | |||
1311 | .resources = ab8500_temp_resources, | 1311 | .resources = ab8500_temp_resources, |
1312 | }, | 1312 | }, |
1313 | { | 1313 | { |
1314 | .name = "ab8500-gpio", | 1314 | .name = "pinctrl-ab8540", |
1315 | }, | 1315 | }, |
1316 | { | 1316 | { |
1317 | .name = "ab8540-usb", | 1317 | .name = "ab8540-usb", |