summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/bcm/pinctrl-nsp-gpio.c
diff options
context:
space:
mode:
authorRay Jui <ray.jui@broadcom.com>2016-10-18 03:41:41 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-10-31 21:25:15 +0100
commit091c531b09c151c2d712a8f347009ca3698a2467 (patch)
tree1d7819e32a4a52dcaa8585a200d0643205fed961 /drivers/pinctrl/bcm/pinctrl-nsp-gpio.c
parentLinux 4.9-rc3 (diff)
downloadlinux-091c531b09c151c2d712a8f347009ca3698a2467.tar.xz
linux-091c531b09c151c2d712a8f347009ca3698a2467.zip
pinctrl: iproc: Fix iProc and NSP GPIO support
Since commit 44a7185c2ae6 ("of/platform: Add common method to populate default bus"), ARM64 platform devices are populated at the arch_initcall_sync level; as a result, the platform_driver_probe calls in both the iProc and NSP GPIO drivers fail with -ENODEV since by that time the platform device was not yet registered. Replace platform_driver_probe with platform_driver_register, that allow the device to be register later Fixes: 44a7185c2ae6 ("of/platform: Add common method to populate default bus") Signed-off-by: Ray Jui <ray.jui@broadcom.com> Tested-by: Eric Anholt <eric@anholt.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/bcm/pinctrl-nsp-gpio.c')
-rw-r--r--drivers/pinctrl/bcm/pinctrl-nsp-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-nsp-gpio.c b/drivers/pinctrl/bcm/pinctrl-nsp-gpio.c
index 35783db1c10b..c8deb8be1da7 100644
--- a/drivers/pinctrl/bcm/pinctrl-nsp-gpio.c
+++ b/drivers/pinctrl/bcm/pinctrl-nsp-gpio.c
@@ -741,6 +741,6 @@ static struct platform_driver nsp_gpio_driver = {
static int __init nsp_gpio_init(void)
{
- return platform_driver_probe(&nsp_gpio_driver, nsp_gpio_probe);
+ return platform_driver_register(&nsp_gpio_driver);
}
arch_initcall_sync(nsp_gpio_init);