aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/cyber2000fb.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:07:39 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:01 -0500
commit48c68c4f1b542444f175a9e136febcecf3e704d8 (patch)
treed28f4f3b42643990c2908d27e9caf120f6234b73 /drivers/video/cyber2000fb.c
parent8590dbc79a0ff5d7ab16b2b1743684c241ae3c65 (diff)
Drivers: video: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video/cyber2000fb.c')
-rw-r--r--drivers/video/cyber2000fb.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/video/cyber2000fb.c b/drivers/video/cyber2000fb.c
index e40125cb313e..57886787ead0 100644
--- a/drivers/video/cyber2000fb.c
+++ b/drivers/video/cyber2000fb.c
@@ -1230,7 +1230,7 @@ static int cyber2000fb_ddc_getsda(void *data)
1230 return retval; 1230 return retval;
1231} 1231}
1232 1232
1233static int __devinit cyber2000fb_setup_ddc_bus(struct cfb_info *cfb) 1233static int cyber2000fb_setup_ddc_bus(struct cfb_info *cfb)
1234{ 1234{
1235 strlcpy(cfb->ddc_adapter.name, cfb->fb.fix.id, 1235 strlcpy(cfb->ddc_adapter.name, cfb->fb.fix.id,
1236 sizeof(cfb->ddc_adapter.name)); 1236 sizeof(cfb->ddc_adapter.name));
@@ -1305,7 +1305,7 @@ static int cyber2000fb_i2c_getscl(void *data)
1305 return ret; 1305 return ret;
1306} 1306}
1307 1307
1308static int __devinit cyber2000fb_i2c_register(struct cfb_info *cfb) 1308static int cyber2000fb_i2c_register(struct cfb_info *cfb)
1309{ 1309{
1310 strlcpy(cfb->i2c_adapter.name, cfb->fb.fix.id, 1310 strlcpy(cfb->i2c_adapter.name, cfb->fb.fix.id,
1311 sizeof(cfb->i2c_adapter.name)); 1311 sizeof(cfb->i2c_adapter.name));
@@ -1336,7 +1336,7 @@ static void cyber2000fb_i2c_unregister(struct cfb_info *cfb)
1336 * These parameters give 1336 * These parameters give
1337 * 640x480, hsync 31.5kHz, vsync 60Hz 1337 * 640x480, hsync 31.5kHz, vsync 60Hz
1338 */ 1338 */
1339static struct fb_videomode __devinitdata cyber2000fb_default_mode = { 1339static struct fb_videomode cyber2000fb_default_mode = {
1340 .refresh = 60, 1340 .refresh = 60,
1341 .xres = 640, 1341 .xres = 640,
1342 .yres = 480, 1342 .yres = 480,
@@ -1404,8 +1404,7 @@ static void cyberpro_init_hw(struct cfb_info *cfb)
1404 } 1404 }
1405} 1405}
1406 1406
1407static struct cfb_info __devinit *cyberpro_alloc_fb_info(unsigned int id, 1407static struct cfb_info *cyberpro_alloc_fb_info(unsigned int id, char *name)
1408 char *name)
1409{ 1408{
1410 struct cfb_info *cfb; 1409 struct cfb_info *cfb;
1411 1410
@@ -1524,7 +1523,7 @@ static int cyber2000fb_setup(char *options)
1524 * - memory mapped access to the registers 1523 * - memory mapped access to the registers
1525 * - initialised mem_ctl1 and mem_ctl2 appropriately. 1524 * - initialised mem_ctl1 and mem_ctl2 appropriately.
1526 */ 1525 */
1527static int __devinit cyberpro_common_probe(struct cfb_info *cfb) 1526static int cyberpro_common_probe(struct cfb_info *cfb)
1528{ 1527{
1529 u_long smem_size; 1528 u_long smem_size;
1530 u_int h_sync, v_sync; 1529 u_int h_sync, v_sync;
@@ -1615,7 +1614,7 @@ failed:
1615 return err; 1614 return err;
1616} 1615}
1617 1616
1618static void __devexit cyberpro_common_remove(struct cfb_info *cfb) 1617static void cyberpro_common_remove(struct cfb_info *cfb)
1619{ 1618{
1620 unregister_framebuffer(&cfb->fb); 1619 unregister_framebuffer(&cfb->fb);
1621#ifdef CONFIG_FB_CYBER2000_DDC 1620#ifdef CONFIG_FB_CYBER2000_DDC
@@ -1646,7 +1645,7 @@ static void cyberpro_common_resume(struct cfb_info *cfb)
1646 1645
1647#include <mach/framebuffer.h> 1646#include <mach/framebuffer.h>
1648 1647
1649static int __devinit cyberpro_vl_probe(void) 1648static int cyberpro_vl_probe(void)
1650{ 1649{
1651 struct cfb_info *cfb; 1650 struct cfb_info *cfb;
1652 int err = -ENOMEM; 1651 int err = -ENOMEM;
@@ -1780,8 +1779,8 @@ static int cyberpro_pci_enable_mmio(struct cfb_info *cfb)
1780 return 0; 1779 return 0;
1781} 1780}
1782 1781
1783static int __devinit 1782static int cyberpro_pci_probe(struct pci_dev *dev,
1784cyberpro_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 1783 const struct pci_device_id *id)
1785{ 1784{
1786 struct cfb_info *cfb; 1785 struct cfb_info *cfb;
1787 char name[16]; 1786 char name[16];
@@ -1863,7 +1862,7 @@ failed_release:
1863 return err; 1862 return err;
1864} 1863}
1865 1864
1866static void __devexit cyberpro_pci_remove(struct pci_dev *dev) 1865static void cyberpro_pci_remove(struct pci_dev *dev)
1867{ 1866{
1868 struct cfb_info *cfb = pci_get_drvdata(dev); 1867 struct cfb_info *cfb = pci_get_drvdata(dev);
1869 1868
@@ -1923,7 +1922,7 @@ MODULE_DEVICE_TABLE(pci, cyberpro_pci_table);
1923static struct pci_driver cyberpro_driver = { 1922static struct pci_driver cyberpro_driver = {
1924 .name = "CyberPro", 1923 .name = "CyberPro",
1925 .probe = cyberpro_pci_probe, 1924 .probe = cyberpro_pci_probe,
1926 .remove = __devexit_p(cyberpro_pci_remove), 1925 .remove = cyberpro_pci_remove,
1927 .suspend = cyberpro_pci_suspend, 1926 .suspend = cyberpro_pci_suspend,
1928 .resume = cyberpro_pci_resume, 1927 .resume = cyberpro_pci_resume,
1929 .id_table = cyberpro_pci_table 1928 .id_table = cyberpro_pci_table