pinctrl: iproc: Fix iProc and NSP GPIO support
authorRay Jui <ray.jui@broadcom.com>
Tue, 18 Oct 2016 01:41:41 +0000 (18:41 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 31 Oct 2016 20:25:15 +0000 (21:25 +0100)
commit091c531b09c151c2d712a8f347009ca3698a2467
tree1d7819e32a4a52dcaa8585a200d0643205fed961
parenta909d3e636995ba7c349e2ca5dbb528154d4ac30
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>
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c
drivers/pinctrl/bcm/pinctrl-nsp-gpio.c