mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 17:46:15 +07:00
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>
This commit is contained in:
parent
3ce92a2a7b
commit
d649770087
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user