Should check fb_read method presence instead of double check for fb_write.
Pointed by: emaste Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
fd815c0b8d
commit
79b647995d
@ -246,7 +246,7 @@ fb_probe(struct fb_info *info)
|
||||
return (ENXIO);
|
||||
|
||||
if (info->fb_write != NULL) {
|
||||
if (info->fb_write == NULL) {
|
||||
if (info->fb_read == NULL) {
|
||||
return (EINVAL);
|
||||
}
|
||||
info->fb_flags |= FB_FLAG_NOMMAP;
|
||||
|
Loading…
Reference in New Issue
Block a user