Skip to content

Commit

Permalink
m68k: dnfb doesnt check for Apollo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
geertu authored and torvalds committed May 18, 2008
1 parent 3ce92a2 commit d649770
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/dnfb.c
Expand Up @@ -284,6 +284,9 @@ int __init dnfb_init(void)
{
int ret;

if (!MACH_IS_APOLLO)
return -ENODEV;

if (fb_get_options("dnfb", NULL))
return -ENODEV;

Expand Down

0 comments on commit d649770

Please sign in to comment.