mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
Since commit44a7185c2a("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:44a7185c2a("of/platform: Add common method to populate default bus") Signed-off-by: Ray Jui <[email protected]> Tested-by: Eric Anholt <[email protected]> Signed-off-by: Linus Walleij <[email protected]>