OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ce92a2
)
m68k: dnfb doesnt check for Apollo
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Sun, 18 May 2008 18:47:15 +0000
(20:47 +0200)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sun, 18 May 2008 20:28:49 +0000
(13:28 -0700)
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>
drivers/video/dnfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/dnfb.c
b/drivers/video/dnfb.c
index
b083ea7
..
606da04
100644
(file)
--- a/
drivers/video/dnfb.c
+++ b/
drivers/video/dnfb.c
@@
-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;