Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cfeba53 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven
Browse files

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



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>
Cc: stable@vger.kernel.org
parent 7224c0d1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -980,6 +980,9 @@ int __init mac_platform_init(void)
{
	u8 *swim_base;

	if (!MACH_IS_MAC)
		return -ENODEV;

	/*
	 * Serial devices
	 */