m68k: dnfb doesnt check for Apollo

The Apollo frame buffer device driver (dnfb) doesn't check whether it's
actually running on Apollo hardware, causing a crash if it isn't.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Geert Uytterhoeven and committed by Linus Torvalds d6497700 3ce92a2a

+3
+3
drivers/video/dnfb.c
··· 284 { 285 int ret; 286 287 if (fb_get_options("dnfb", NULL)) 288 return -ENODEV; 289
··· 284 { 285 int ret; 286 287 + if (!MACH_IS_APOLLO) 288 + return -ENODEV; 289 + 290 if (fb_get_options("dnfb", NULL)) 291 return -ENODEV; 292