projects
/
firefly-linux-kernel-4.4.55.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 b083ea7e9c69e6c1ea45e0ce84f34c75958678ab..606da043f4b479cd46c31f1778a7a1272dc4d872 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;