]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: Fix boot problem on SuperH
authorGuenter Roeck <linux@roeck-us.net>
Tue, 3 Dec 2019 20:58:52 +0000 (12:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 14:51:20 +0000 (15:51 +0100)
commit8fa36878bade869fa1f0f230f721306dfe722a84
treebbc2c130cb73a5071606293e56e5036659951cdf
parent00a0521709ec4968a970e5890c4fc266cbeb4d5a
drivers: Fix boot problem on SuperH

SuperH images crash too eearly to display any console output. Bisect
points to commit 8cc0775e46f1 ("drivers: move the early platform device
support to arch/sh"). An analysis of that patch suggests that
early_platform_cleanup() is now called at the wrong time. Restoring its
call point fixes the problem.

Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Fixes: 8cc0775e46f1 ("drivers: move the early platform device support to arch/sh")
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Rob Landley <rob@landley.net>
Link: https://lore.kernel.org/r/20191203205852.15659-1-linux@roeck-us.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sh/drivers/platform_early.c
drivers/base/platform.c