Commit 3f2d237f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Kroah-Hartman

m68k/mac: Add missing platform check before registering platform devices

commit 6cfeba53 upstream.

On multi-platform kernels, the Mac platform devices should be registered
when running on Mac only. Else it may crash later.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7be29c2a
......@@ -950,6 +950,9 @@ int __init mac_platform_init(void)
{
u8 *swim_base;
if (!MACH_IS_MAC)
return -ENODEV;
/*
* Serial devices
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment