pinctrl: iproc: Fix iProc and NSP GPIO support
commitce0702e35aeb7551102f3e561387ab7eb3e40b91
authorRay Jui <ray.jui@broadcom.com>
Tue, 18 Oct 2016 01:41:41 +0000 (17 18:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:51:52 +0000 (18 10:51 +0100)
tree9bc5e14a3252975a5de788d5588390b19c1c9184
parent320244ac9eb66ea498b7b5b155e86946d4f47f76
pinctrl: iproc: Fix iProc and NSP GPIO support

commit 091c531b09c151c2d712a8f347009ca3698a2467 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c
drivers/pinctrl/bcm/pinctrl-nsp-gpio.c