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)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 1 Apr 2012 20:57:51 +0000 (22:57 +0200)
commit6cfeba53911d6d2f17ebbd1246893557d5ff5aeb
treeec74c829f11b9fe5b4fa5c35cffd61f83454ad22
parent7224c0d1045327d637dab2c90777b6d5ec6d6804
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: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: stable@vger.kernel.org
arch/m68k/mac/config.c