History

fbdev: make unregister/unlink functions not fail

Except for driver bugs (which we'll catch with a WARN_ON) this is only to report failures of the new driver taking over the console. There's nothing the outgoing driver can do about that, and no one ever bothered to actually look at these return values. So remove them all. v2: fixup unregister_framebuffer in savagefb, fbtft, ivtvfb, and neofb drivers, reported by kbuild.

Daniel Vetter committed 7 years ago

Commit deb00d21 parent 0e0f3256 files · +31 −74Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/fb.h+2−2
@@ -634,8 +634,8 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf, · 633 unmodified lines
634634
635635 /* drivers/video/fbmem.c */
636636 extern int register_framebuffer(struct fb_info *fb_info);
637−extern int unregister_framebuffer(struct fb_info *fb_info);
638−extern int unlink_framebuffer(struct fb_info *fb_info);
637+extern void unregister_framebuffer(struct fb_info *fb_info);
638+extern void unlink_framebuffer(struct fb_info *fb_info);
639639 extern int remove_conflicting_pci_framebuffers(struct pci_dev *pdev, int res_id,
640640 const char *name);
641641 extern int remove_conflicting_framebuffers(struct apertures_struct *a,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t