m68k/mac: Add missing platform check before registering platform devices
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 18 Mar 2012 12:21:38 +0000 (13:21 +0100)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 30 Apr 2012 18:15:00 +0000 (19:15 +0100)
commit4ec42917d7296e0d564d06d22bd592847d73cd22
tree0b47e3ffeac700397e4de64f5b9fa56d55e7edfd
parent42e9c49306387f300cc2d55714ff1e7490a1000c
m68k/mac: Add missing platform check before registering platform devices

BugLink: http://bugs.launchpad.net/bugs/981162

commit 6cfeba53911d6d2f17ebbd1246893557d5ff5aeb 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: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/m68k/mac/config.c