diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-16 18:37:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-16 18:37:20 -0700 |
commit | 09fd671ccb2475436bd5f597f751ca4a7d177aea (patch) | |
tree | 44e1b7bad93a9107a1335c134a328e934349a8eb /drivers/video/fbdev/sunxvr500.c | |
parent | bace3db5da970c4d4f80a1ffa988ec66c7f6a8f5 (diff) | |
parent | 13aa38e291bdd4e4018f40dd2f75e464814dcbf3 (diff) | |
download | lwn-09fd671ccb2475436bd5f597f751ca4a7d177aea.tar.gz lwn-09fd671ccb2475436bd5f597f751ca4a7d177aea.zip |
Merge tag 'fbdev-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux
Pull fbdev updates from Tomi Valkeinen:
- Miscallaneous small fixes to various fbdev drivers
- Remove fb_rotate, which was never used
- pmag fb improvements
* tag 'fbdev-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (21 commits)
xen kconfig: don't "select INPUT_XEN_KBDDEV_FRONTEND"
video: fbdev: sis: remove unused variable
drivers/video: make fbdev/sunxvr2500.c explicitly non-modular
drivers/video: make fbdev/sunxvr1000.c explicitly non-modular
drivers/video: make fbdev/sunxvr500.c explicitly non-modular
video: exynos: fix modular build
fbdev: da8xx-fb: fix videomodes of lcd panels
fbdev: kill fb_rotate
video: fbdev: bt431: Correct cursor format control macro
video: fbdev: pmag-ba-fb: Optimize Bt455 colormap addressing
video: fbdev: pmag-ba-fb: Fix and rework Bt455 colormap handling
video: fbdev: bt455: Remove unneeded colormap helpers for cursor support
video: fbdev: pmag-aa-fb: Report video timings
video: fbdev: pmag-aa-fb: Enable building as a module
video: fbdev: pmag-aa-fb: Adapt to current APIs
video: fbdev: pmag-ba-fb: Fix the lower margin size
fbdev: sh_mobile_lcdc: Use ARCH_RENESAS
fbdev: n411: check return value
fbdev: exynos: fix IS_ERR_VALUE usage
video: Use bool instead int pointer for get_opt_bool() argument
...
Diffstat (limited to 'drivers/video/fbdev/sunxvr500.c')
-rw-r--r-- | drivers/video/fbdev/sunxvr500.c | 42 |
1 files changed, 7 insertions, 35 deletions
diff --git a/drivers/video/fbdev/sunxvr500.c b/drivers/video/fbdev/sunxvr500.c index 387350d004df..dc0d886e4e7e 100644 --- a/drivers/video/fbdev/sunxvr500.c +++ b/drivers/video/fbdev/sunxvr500.c @@ -1,9 +1,10 @@ -/* sunxvr500.c: Sun 3DLABS XVR-500 Expert3D driver for sparc64 systems +/* sunxvr500.c: Sun 3DLABS XVR-500 Expert3D fb driver for sparc64 systems + * + * License: GPL * * Copyright (C) 2007 David S. Miller (davem@davemloft.net) */ -#include <linux/module.h> #include <linux/kernel.h> #include <linux/fb.h> #include <linux/pci.h> @@ -392,25 +393,6 @@ err_out: return err; } -static void e3d_pci_unregister(struct pci_dev *pdev) -{ - struct fb_info *info = pci_get_drvdata(pdev); - struct e3d_info *ep = info->par; - - unregister_framebuffer(info); - - iounmap(ep->ramdac); - iounmap(ep->fb_base); - - pci_release_region(pdev, 0); - pci_release_region(pdev, 1); - - fb_dealloc_cmap(&info->cmap); - framebuffer_release(info); - - pci_disable_device(pdev); -} - static struct pci_device_id e3d_pci_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x7a0), }, { PCI_DEVICE(0x1091, 0x7a0), }, @@ -434,10 +416,12 @@ static struct pci_device_id e3d_pci_table[] = { }; static struct pci_driver e3d_driver = { + .driver = { + .suppress_bind_attrs = true, + }, .name = "e3d", .id_table = e3d_pci_table, .probe = e3d_pci_register, - .remove = e3d_pci_unregister, }; static int __init e3d_init(void) @@ -447,16 +431,4 @@ static int __init e3d_init(void) return pci_register_driver(&e3d_driver); } - -static void __exit e3d_exit(void) -{ - pci_unregister_driver(&e3d_driver); -} - -module_init(e3d_init); -module_exit(e3d_exit); - -MODULE_DESCRIPTION("framebuffer driver for Sun XVR-500 graphics"); -MODULE_AUTHOR("David S. Miller <davem@davemloft.net>"); -MODULE_VERSION("1.0"); -MODULE_LICENSE("GPL"); +device_initcall(e3d_init); |