m68k/q40: Add missing platform check before registering platform devices
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 18 Mar 2012 12:20:27 +0000 (13:20 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 1 Apr 2012 20:57:53 +0000 (22:57 +0200)
commit450aed725c9a53282483c48ebd012feefae94a07
tree2cbd5e664c0f66490294a641033cf361820a3564
parent6cfeba53911d6d2f17ebbd1246893557d5ff5aeb
m68k/q40: Add missing platform check before registering platform devices

On multi-platform kernels, the Q40/Q60 platform devices should be
registered when running on Q40/Q60 only. Else it may crash later.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/q40/config.c