Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1017 -1129
+11 -11
drivers/video/acornfb.c
··· 66 66 * have. Allow 1% either way on the nominal for TVs. 67 67 */ 68 68 #define NR_MONTYPES 6 69 - static struct fb_monspecs monspecs[NR_MONTYPES] __devinitdata = { 69 + static struct fb_monspecs monspecs[NR_MONTYPES] = { 70 70 { /* TV */ 71 71 .hfmin = 15469, 72 72 .hfmax = 15781, ··· 874 874 /* 875 875 * Everything after here is initialisation!!! 876 876 */ 877 - static struct fb_videomode modedb[] __devinitdata = { 877 + static struct fb_videomode modedb[] = { 878 878 { /* 320x256 @ 50Hz */ 879 879 NULL, 50, 320, 256, 125000, 92, 62, 35, 19, 38, 2, 880 880 FB_SYNC_COMP_HIGH_ACT, ··· 926 926 } 927 927 }; 928 928 929 - static struct fb_videomode acornfb_default_mode __devinitdata = { 929 + static struct fb_videomode acornfb_default_mode = { 930 930 .name = NULL, 931 931 .refresh = 60, 932 932 .xres = 640, ··· 942 942 .vmode = FB_VMODE_NONINTERLACED 943 943 }; 944 944 945 - static void __devinit acornfb_init_fbinfo(void) 945 + static void acornfb_init_fbinfo(void) 946 946 { 947 947 static int first = 1; 948 948 ··· 1018 1018 * size can optionally be followed by 'M' or 'K' for 1019 1019 * MB or KB respectively. 1020 1020 */ 1021 - static void __devinit acornfb_parse_mon(char *opt) 1021 + static void acornfb_parse_mon(char *opt) 1022 1022 { 1023 1023 char *p = opt; 1024 1024 ··· 1065 1065 current_par.montype = -1; 1066 1066 } 1067 1067 1068 - static void __devinit acornfb_parse_montype(char *opt) 1068 + static void acornfb_parse_montype(char *opt) 1069 1069 { 1070 1070 current_par.montype = -2; 1071 1071 ··· 1106 1106 } 1107 1107 } 1108 1108 1109 - static void __devinit acornfb_parse_dram(char *opt) 1109 + static void acornfb_parse_dram(char *opt) 1110 1110 { 1111 1111 unsigned int size; 1112 1112 ··· 1131 1131 static struct options { 1132 1132 char *name; 1133 1133 void (*parse)(char *opt); 1134 - } opt_table[] __devinitdata = { 1134 + } opt_table[] = { 1135 1135 { "mon", acornfb_parse_mon }, 1136 1136 { "montype", acornfb_parse_montype }, 1137 1137 { "dram", acornfb_parse_dram }, 1138 1138 { NULL, NULL } 1139 1139 }; 1140 1140 1141 - static int __devinit acornfb_setup(char *options) 1141 + static int acornfb_setup(char *options) 1142 1142 { 1143 1143 struct options *optp; 1144 1144 char *opt; ··· 1175 1175 * Detect type of monitor connected 1176 1176 * For now, we just assume SVGA 1177 1177 */ 1178 - static int __devinit acornfb_detect_monitortype(void) 1178 + static int acornfb_detect_monitortype(void) 1179 1179 { 1180 1180 return 4; 1181 1181 } ··· 1216 1216 printk("acornfb: freed %dK memory\n", mb_freed); 1217 1217 } 1218 1218 1219 - static int __devinit acornfb_probe(struct platform_device *dev) 1219 + static int acornfb_probe(struct platform_device *dev) 1220 1220 { 1221 1221 unsigned long size; 1222 1222 u_int h_sync, v_sync;
+5 -5
drivers/video/arcfb.c
··· 79 79 spinlock_t lock; 80 80 }; 81 81 82 - static struct fb_fix_screeninfo arcfb_fix __devinitdata = { 82 + static struct fb_fix_screeninfo arcfb_fix = { 83 83 .id = "arcfb", 84 84 .type = FB_TYPE_PACKED_PIXELS, 85 85 .visual = FB_VISUAL_MONO01, ··· 89 89 .accel = FB_ACCEL_NONE, 90 90 }; 91 91 92 - static struct fb_var_screeninfo arcfb_var __devinitdata = { 92 + static struct fb_var_screeninfo arcfb_var = { 93 93 .xres = 128, 94 94 .yres = 64, 95 95 .xres_virtual = 128, ··· 502 502 .fb_ioctl = arcfb_ioctl, 503 503 }; 504 504 505 - static int __devinit arcfb_probe(struct platform_device *dev) 505 + static int arcfb_probe(struct platform_device *dev) 506 506 { 507 507 struct fb_info *info; 508 508 int retval = -ENOMEM; ··· 587 587 return retval; 588 588 } 589 589 590 - static int __devexit arcfb_remove(struct platform_device *dev) 590 + static int arcfb_remove(struct platform_device *dev) 591 591 { 592 592 struct fb_info *info = platform_get_drvdata(dev); 593 593 ··· 601 601 602 602 static struct platform_driver arcfb_driver = { 603 603 .probe = arcfb_probe, 604 - .remove = __devexit_p(arcfb_remove), 604 + .remove = arcfb_remove, 605 605 .driver = { 606 606 .name = "arcfb", 607 607 },
+5 -5
drivers/video/arkfb.c
··· 100 100 101 101 /* Module parameters */ 102 102 103 - static char *mode_option __devinitdata = "640x480-8@60"; 103 + static char *mode_option = "640x480-8@60"; 104 104 105 105 #ifdef CONFIG_MTRR 106 106 static int mtrr = 1; ··· 950 950 951 951 952 952 /* PCI probe */ 953 - static int __devinit ark_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 953 + static int ark_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 954 954 { 955 955 struct pci_bus_region bus_reg; 956 956 struct resource vga_res; ··· 1086 1086 1087 1087 /* PCI remove */ 1088 1088 1089 - static void __devexit ark_pci_remove(struct pci_dev *dev) 1089 + static void ark_pci_remove(struct pci_dev *dev) 1090 1090 { 1091 1091 struct fb_info *info = pci_get_drvdata(dev); 1092 1092 ··· 1184 1184 1185 1185 /* List of boards that we are trying to support */ 1186 1186 1187 - static struct pci_device_id ark_devices[] __devinitdata = { 1187 + static struct pci_device_id ark_devices[] = { 1188 1188 {PCI_DEVICE(0xEDD8, 0xA099)}, 1189 1189 {0, 0, 0, 0, 0, 0, 0} 1190 1190 }; ··· 1196 1196 .name = "arkfb", 1197 1197 .id_table = ark_devices, 1198 1198 .probe = ark_pci_probe, 1199 - .remove = __devexit_p(ark_pci_remove), 1199 + .remove = ark_pci_remove, 1200 1200 .suspend = ark_pci_suspend, 1201 1201 .resume = ark_pci_resume, 1202 1202 };
+9 -9
drivers/video/asiliantfb.c
··· 451 451 {0xd1, 0x01}, 452 452 }; 453 453 454 - static void __devinit chips_hw_init(struct fb_info *p) 454 + static void chips_hw_init(struct fb_info *p) 455 455 { 456 456 int i; 457 457 ··· 474 474 write_fr(chips_init_fr[i].addr, chips_init_fr[i].data); 475 475 } 476 476 477 - static struct fb_fix_screeninfo asiliantfb_fix __devinitdata = { 477 + static struct fb_fix_screeninfo asiliantfb_fix = { 478 478 .id = "Asiliant 69000", 479 479 .type = FB_TYPE_PACKED_PIXELS, 480 480 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 483 483 .smem_len = 0x200000, /* 2MB */ 484 484 }; 485 485 486 - static struct fb_var_screeninfo asiliantfb_var __devinitdata = { 486 + static struct fb_var_screeninfo asiliantfb_var = { 487 487 .xres = 640, 488 488 .yres = 480, 489 489 .xres_virtual = 640, ··· 504 504 .vsync_len = 2, 505 505 }; 506 506 507 - static int __devinit init_asiliant(struct fb_info *p, unsigned long addr) 507 + static int init_asiliant(struct fb_info *p, unsigned long addr) 508 508 { 509 509 int err; 510 510 ··· 535 535 return 0; 536 536 } 537 537 538 - static int __devinit 539 - asiliantfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) 538 + static int asiliantfb_pci_init(struct pci_dev *dp, 539 + const struct pci_device_id *ent) 540 540 { 541 541 unsigned long addr, size; 542 542 struct fb_info *p; ··· 581 581 return 0; 582 582 } 583 583 584 - static void __devexit asiliantfb_remove(struct pci_dev *dp) 584 + static void asiliantfb_remove(struct pci_dev *dp) 585 585 { 586 586 struct fb_info *p = pci_get_drvdata(dp); 587 587 ··· 593 593 framebuffer_release(p); 594 594 } 595 595 596 - static struct pci_device_id asiliantfb_pci_tbl[] __devinitdata = { 596 + static struct pci_device_id asiliantfb_pci_tbl[] = { 597 597 { PCI_VENDOR_ID_CT, PCI_DEVICE_ID_CT_69000, PCI_ANY_ID, PCI_ANY_ID }, 598 598 { 0 } 599 599 }; ··· 604 604 .name = "asiliantfb", 605 605 .id_table = asiliantfb_pci_tbl, 606 606 .probe = asiliantfb_pci_init, 607 - .remove = __devexit_p(asiliantfb_remove), 607 + .remove = asiliantfb_remove, 608 608 }; 609 609 610 610 static int __init asiliantfb_init(void)
+27 -30
drivers/video/aty/aty128fb.c
··· 98 98 99 99 #ifndef CONFIG_PPC_PMAC 100 100 /* default mode */ 101 - static struct fb_var_screeninfo default_var __devinitdata = { 101 + static struct fb_var_screeninfo default_var = { 102 102 /* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */ 103 103 640, 480, 640, 480, 0, 0, 8, 0, 104 104 {0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0}, ··· 121 121 122 122 /* default modedb mode */ 123 123 /* 640x480, 60 Hz, Non-Interlaced (25.172 MHz dotclock) */ 124 - static struct fb_videomode defaultmode __devinitdata = { 124 + static struct fb_videomode defaultmode = { 125 125 .refresh = 60, 126 126 .xres = 640, 127 127 .yres = 480, ··· 149 149 }; 150 150 151 151 /* Must match above enum */ 152 - static char * const r128_family[] __devinitconst = { 152 + static char * const r128_family[] = { 153 153 "AGP", 154 154 "PCI", 155 155 "PRO AGP", ··· 275 275 .name = "aty128fb", 276 276 .id_table = aty128_pci_tbl, 277 277 .probe = aty128_probe, 278 - .remove = __devexit_p(aty128_remove), 278 + .remove = aty128_remove, 279 279 .suspend = aty128_pci_suspend, 280 280 .resume = aty128_pci_resume, 281 281 }; ··· 333 333 static const struct aty128_meminfo ddr_sgram = 334 334 { 4, 4, 3, 3, 2, 3, 1, 16, 31, 16, "64-bit DDR SGRAM" }; 335 335 336 - static struct fb_fix_screeninfo aty128fb_fix __devinitdata = { 336 + static struct fb_fix_screeninfo aty128fb_fix = { 337 337 .id = "ATY Rage128", 338 338 .type = FB_TYPE_PACKED_PIXELS, 339 339 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 343 343 .accel = FB_ACCEL_ATI_RAGE128, 344 344 }; 345 345 346 - static char *mode_option __devinitdata = NULL; 346 + static char *mode_option = NULL; 347 347 348 348 #ifdef CONFIG_PPC_PMAC 349 - static int default_vmode __devinitdata = VMODE_1024_768_60; 350 - static int default_cmode __devinitdata = CMODE_8; 349 + static int default_vmode = VMODE_1024_768_60; 350 + static int default_cmode = CMODE_8; 351 351 #endif 352 352 353 - static int default_crt_on __devinitdata = 0; 354 - static int default_lcd_on __devinitdata = 1; 353 + static int default_crt_on = 0; 354 + static int default_lcd_on = 1; 355 355 356 356 #ifdef CONFIG_MTRR 357 357 static bool mtrr = true; 358 358 #endif 359 359 360 360 #ifdef CONFIG_PMAC_BACKLIGHT 361 - static int backlight __devinitdata = 1; 361 + static int backlight = 1; 362 362 #else 363 - static int backlight __devinitdata = 0; 363 + static int backlight = 0; 364 364 #endif 365 365 366 366 /* PLL constants */ ··· 449 449 static int aty128_decode_var(struct fb_var_screeninfo *var, 450 450 struct aty128fb_par *par); 451 451 #if 0 452 - static void __devinit aty128_get_pllinfo(struct aty128fb_par *par, 453 - void __iomem *bios); 454 - static void __devinit __iomem *aty128_map_ROM(struct pci_dev *pdev, 455 - const struct aty128fb_par *par); 452 + static void aty128_get_pllinfo(struct aty128fb_par *par, void __iomem *bios); 453 + static void __iomem *aty128_map_ROM(struct pci_dev *pdev, 454 + const struct aty128fb_par *par); 456 455 #endif 457 456 static void aty128_timings(struct aty128fb_par *par); 458 457 static void aty128_init_engine(struct aty128fb_par *par); ··· 581 582 582 583 583 584 /* write to the scratch register to test r/w functionality */ 584 - static int __devinit register_test(const struct aty128fb_par *par) 585 + static int register_test(const struct aty128fb_par *par) 585 586 { 586 587 u32 val; 587 588 int flag = 0; ··· 780 781 781 782 782 783 #ifndef __sparc__ 783 - static void __iomem * __devinit aty128_map_ROM(const struct aty128fb_par *par, 784 - struct pci_dev *dev) 784 + static void __iomem *aty128_map_ROM(const struct aty128fb_par *par, 785 + struct pci_dev *dev) 785 786 { 786 787 u16 dptr; 787 788 u8 rom_type; ··· 867 868 return NULL; 868 869 } 869 870 870 - static void __devinit aty128_get_pllinfo(struct aty128fb_par *par, 871 - unsigned char __iomem *bios) 871 + static void aty128_get_pllinfo(struct aty128fb_par *par, 872 + unsigned char __iomem *bios) 872 873 { 873 874 unsigned int bios_hdr; 874 875 unsigned int bios_pll; ··· 890 891 } 891 892 892 893 #ifdef CONFIG_X86 893 - static void __iomem * __devinit aty128_find_mem_vbios(struct aty128fb_par *par) 894 + static void __iomem *aty128_find_mem_vbios(struct aty128fb_par *par) 894 895 { 895 896 /* I simplified this code as we used to miss the signatures in 896 897 * a lot of case. It's now closer to XFree, we just don't check ··· 915 916 #endif /* ndef(__sparc__) */ 916 917 917 918 /* fill in known card constants if pll_block is not available */ 918 - static void __devinit aty128_timings(struct aty128fb_par *par) 919 + static void aty128_timings(struct aty128fb_par *par) 919 920 { 920 921 #ifdef CONFIG_PPC_OF 921 922 /* instead of a table lookup, assume OF has properly ··· 1657 1658 } 1658 1659 1659 1660 #ifndef MODULE 1660 - static int __devinit aty128fb_setup(char *options) 1661 + static int aty128fb_setup(char *options) 1661 1662 { 1662 1663 char *this_opt; 1663 1664 ··· 1887 1888 } 1888 1889 #endif /* CONFIG_PPC_PMAC */ 1889 1890 1890 - static int __devinit aty128_init(struct pci_dev *pdev, 1891 - const struct pci_device_id *ent) 1891 + static int aty128_init(struct pci_dev *pdev, const struct pci_device_id *ent) 1892 1892 { 1893 1893 struct fb_info *info = pci_get_drvdata(pdev); 1894 1894 struct aty128fb_par *par = info->par; ··· 2037 2039 2038 2040 #ifdef CONFIG_PCI 2039 2041 /* register a card ++ajoshi */ 2040 - static int __devinit aty128_probe(struct pci_dev *pdev, 2041 - const struct pci_device_id *ent) 2042 + static int aty128_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 2042 2043 { 2043 2044 unsigned long fb_addr, reg_addr; 2044 2045 struct aty128fb_par *par; ··· 2153 2156 return -ENODEV; 2154 2157 } 2155 2158 2156 - static void __devexit aty128_remove(struct pci_dev *pdev) 2159 + static void aty128_remove(struct pci_dev *pdev) 2157 2160 { 2158 2161 struct fb_info *info = pci_get_drvdata(pdev); 2159 2162 struct aty128fb_par *par; ··· 2555 2558 } 2556 2559 2557 2560 2558 - static int __devinit aty128fb_init(void) 2561 + static int aty128fb_init(void) 2559 2562 { 2560 2563 #ifndef MODULE 2561 2564 char *option = NULL;
+41 -43
drivers/video/aty/atyfb_base.c
··· 214 214 unsigned long prot_mask; 215 215 }; 216 216 217 - static struct fb_fix_screeninfo atyfb_fix __devinitdata = { 217 + static struct fb_fix_screeninfo atyfb_fix = { 218 218 .id = "ATY Mach64", 219 219 .type = FB_TYPE_PACKED_PIXELS, 220 220 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 309 309 static int pll; 310 310 static int mclk; 311 311 static int xclk; 312 - static int comp_sync __devinitdata = -1; 312 + static int comp_sync = -1; 313 313 static char *mode; 314 314 315 315 #ifdef CONFIG_PMAC_BACKLIGHT 316 - static int backlight __devinitdata = 1; 316 + static int backlight = 1; 317 317 #else 318 - static int backlight __devinitdata = 0; 318 + static int backlight = 0; 319 319 #endif 320 320 321 321 #ifdef CONFIG_PPC 322 - static int default_vmode __devinitdata = VMODE_CHOOSE; 323 - static int default_cmode __devinitdata = CMODE_CHOOSE; 322 + static int default_vmode = VMODE_CHOOSE; 323 + static int default_cmode = CMODE_CHOOSE; 324 324 325 325 module_param_named(vmode, default_vmode, int, 0); 326 326 MODULE_PARM_DESC(vmode, "int: video mode for mac"); ··· 329 329 #endif 330 330 331 331 #ifdef CONFIG_ATARI 332 - static unsigned int mach64_count __devinitdata = 0; 333 - static unsigned long phys_vmembase[FB_MAX] __devinitdata = { 0, }; 334 - static unsigned long phys_size[FB_MAX] __devinitdata = { 0, }; 335 - static unsigned long phys_guiregbase[FB_MAX] __devinitdata = { 0, }; 332 + static unsigned int mach64_count = 0; 333 + static unsigned long phys_vmembase[FB_MAX] = { 0, }; 334 + static unsigned long phys_size[FB_MAX] = { 0, }; 335 + static unsigned long phys_guiregbase[FB_MAX] = { 0, }; 336 336 #endif 337 337 338 338 /* top -> down is an evolution of mach64 chipset, any corrections? */ ··· 371 371 const char *name; 372 372 int pll, mclk, xclk, ecp_max; 373 373 u32 features; 374 - } aty_chips[] __devinitdata = { 374 + } aty_chips[] = { 375 375 #ifdef CONFIG_FB_ATY_GX 376 376 /* Mach64 GX */ 377 377 { PCI_CHIP_MACH64GX, "ATI888GX00 (Mach64 GX)", 135, 50, 50, 0, ATI_CHIP_88800GX }, ··· 426 426 #endif /* CONFIG_FB_ATY_CT */ 427 427 }; 428 428 429 - static int __devinit correct_chipset(struct atyfb_par *par) 429 + static int correct_chipset(struct atyfb_par *par) 430 430 { 431 431 u8 rev; 432 432 u16 type; ··· 531 531 return 0; 532 532 } 533 533 534 - static char ram_dram[] __devinitdata = "DRAM"; 535 - static char ram_resv[] __devinitdata = "RESV"; 534 + static char ram_dram[] = "DRAM"; 535 + static char ram_resv[] = "RESV"; 536 536 #ifdef CONFIG_FB_ATY_GX 537 - static char ram_vram[] __devinitdata = "VRAM"; 537 + static char ram_vram[] = "VRAM"; 538 538 #endif /* CONFIG_FB_ATY_GX */ 539 539 #ifdef CONFIG_FB_ATY_CT 540 - static char ram_edo[] __devinitdata = "EDO"; 541 - static char ram_sdram[] __devinitdata = "SDRAM (1:1)"; 542 - static char ram_sgram[] __devinitdata = "SGRAM (1:1)"; 543 - static char ram_sdram32[] __devinitdata = "SDRAM (2:1) (32-bit)"; 544 - static char ram_wram[] __devinitdata = "WRAM"; 545 - static char ram_off[] __devinitdata = "OFF"; 540 + static char ram_edo[] = "EDO"; 541 + static char ram_sdram[] = "SDRAM (1:1)"; 542 + static char ram_sgram[] = "SGRAM (1:1)"; 543 + static char ram_sdram32[] = "SDRAM (2:1) (32-bit)"; 544 + static char ram_wram[] = "WRAM"; 545 + static char ram_off[] = "OFF"; 546 546 #endif /* CONFIG_FB_ATY_CT */ 547 547 548 548 549 549 #ifdef CONFIG_FB_ATY_GX 550 - static char *aty_gx_ram[8] __devinitdata = { 550 + static char *aty_gx_ram[8] = { 551 551 ram_dram, ram_vram, ram_vram, ram_dram, 552 552 ram_dram, ram_vram, ram_vram, ram_resv 553 553 }; 554 554 #endif /* CONFIG_FB_ATY_GX */ 555 555 556 556 #ifdef CONFIG_FB_ATY_CT 557 - static char *aty_ct_ram[8] __devinitdata = { 557 + static char *aty_ct_ram[8] = { 558 558 ram_off, ram_dram, ram_edo, ram_edo, 559 559 ram_sdram, ram_sgram, ram_wram, ram_resv 560 560 }; 561 - static char *aty_xl_ram[8] __devinitdata = { 561 + static char *aty_xl_ram[8] = { 562 562 ram_off, ram_dram, ram_edo, ram_edo, 563 563 ram_sdram, ram_sgram, ram_sdram32, ram_resv 564 564 }; ··· 588 588 * Apple monitor sense 589 589 */ 590 590 591 - static int __devinit read_aty_sense(const struct atyfb_par *par) 591 + static int read_aty_sense(const struct atyfb_par *par) 592 592 { 593 593 int sense, i; 594 594 ··· 2273 2273 2274 2274 #endif /* CONFIG_FB_ATY_BACKLIGHT */ 2275 2275 2276 - static void __devinit aty_calc_mem_refresh(struct atyfb_par *par, int xclk) 2276 + static void aty_calc_mem_refresh(struct atyfb_par *par, int xclk) 2277 2277 { 2278 2278 const int ragepro_tbl[] = { 2279 2279 44, 50, 55, 66, 75, 80, 100 ··· 2307 2307 static struct fb_info *fb_list = NULL; 2308 2308 2309 2309 #if defined(__i386__) && defined(CONFIG_FB_ATY_GENERIC_LCD) 2310 - static int __devinit atyfb_get_timings_from_lcd(struct atyfb_par *par, 2311 - struct fb_var_screeninfo *var) 2310 + static int atyfb_get_timings_from_lcd(struct atyfb_par *par, 2311 + struct fb_var_screeninfo *var) 2312 2312 { 2313 2313 int ret = -EINVAL; 2314 2314 ··· 2333 2333 } 2334 2334 #endif /* defined(__i386__) && defined(CONFIG_FB_ATY_GENERIC_LCD) */ 2335 2335 2336 - static int __devinit aty_init(struct fb_info *info) 2336 + static int aty_init(struct fb_info *info) 2337 2337 { 2338 2338 struct atyfb_par *par = (struct atyfb_par *) info->par; 2339 2339 const char *ramname = NULL, *xtal; ··· 2787 2787 } 2788 2788 2789 2789 #if defined(CONFIG_ATARI) && !defined(MODULE) 2790 - static int __devinit store_video_par(char *video_str, unsigned char m64_num) 2790 + static int store_video_par(char *video_str, unsigned char m64_num) 2791 2791 { 2792 2792 char *p; 2793 2793 unsigned long vmembase, size, guiregbase; ··· 2961 2961 2962 2962 #ifdef __sparc__ 2963 2963 2964 - static int __devinit atyfb_setup_sparc(struct pci_dev *pdev, 2965 - struct fb_info *info, 2966 - unsigned long addr) 2964 + static int atyfb_setup_sparc(struct pci_dev *pdev, struct fb_info *info, 2965 + unsigned long addr) 2967 2966 { 2968 2967 struct atyfb_par *par = info->par; 2969 2968 struct device_node *dp; ··· 3160 3161 3161 3162 #ifdef __i386__ 3162 3163 #ifdef CONFIG_FB_ATY_GENERIC_LCD 3163 - static void __devinit aty_init_lcd(struct atyfb_par *par, u32 bios_base) 3164 + static void aty_init_lcd(struct atyfb_par *par, u32 bios_base) 3164 3165 { 3165 3166 u32 driv_inf_tab, sig; 3166 3167 u16 lcd_ofs; ··· 3391 3392 } 3392 3393 #endif /* CONFIG_FB_ATY_GENERIC_LCD */ 3393 3394 3394 - static int __devinit init_from_bios(struct atyfb_par *par) 3395 + static int init_from_bios(struct atyfb_par *par) 3395 3396 { 3396 3397 u32 bios_base, rom_addr; 3397 3398 int ret; ··· 3444 3445 } 3445 3446 #endif /* __i386__ */ 3446 3447 3447 - static int __devinit atyfb_setup_generic(struct pci_dev *pdev, 3448 - struct fb_info *info, 3449 - unsigned long addr) 3448 + static int atyfb_setup_generic(struct pci_dev *pdev, struct fb_info *info, 3449 + unsigned long addr) 3450 3450 { 3451 3451 struct atyfb_par *par = info->par; 3452 3452 u16 tmp; ··· 3523 3525 3524 3526 #endif /* !__sparc__ */ 3525 3527 3526 - static int __devinit atyfb_pci_probe(struct pci_dev *pdev, 3527 - const struct pci_device_id *ent) 3528 + static int atyfb_pci_probe(struct pci_dev *pdev, 3529 + const struct pci_device_id *ent) 3528 3530 { 3529 3531 unsigned long addr, res_start, res_size; 3530 3532 struct fb_info *info; ··· 3712 3714 3713 3715 #ifdef CONFIG_PCI 3714 3716 3715 - static void __devexit atyfb_remove(struct fb_info *info) 3717 + static void atyfb_remove(struct fb_info *info) 3716 3718 { 3717 3719 struct atyfb_par *par = (struct atyfb_par *) info->par; 3718 3720 ··· 3760 3762 } 3761 3763 3762 3764 3763 - static void __devexit atyfb_pci_remove(struct pci_dev *pdev) 3765 + static void atyfb_pci_remove(struct pci_dev *pdev) 3764 3766 { 3765 3767 struct fb_info *info = pci_get_drvdata(pdev); 3766 3768 ··· 3832 3834 .name = "atyfb", 3833 3835 .id_table = atyfb_pci_tbl, 3834 3836 .probe = atyfb_pci_probe, 3835 - .remove = __devexit_p(atyfb_pci_remove), 3837 + .remove = atyfb_pci_remove, 3836 3838 #ifdef CONFIG_PM 3837 3839 .suspend = atyfb_pci_suspend, 3838 3840 .resume = atyfb_pci_resume,
+2 -4
drivers/video/aty/mach64_ct.c
··· 373 373 #endif 374 374 } 375 375 376 - static void __devinit aty_get_pll_ct(const struct fb_info *info, 377 - union aty_pll *pll) 376 + static void aty_get_pll_ct(const struct fb_info *info, union aty_pll *pll) 378 377 { 379 378 struct atyfb_par *par = (struct atyfb_par *) info->par; 380 379 u8 tmp, clock; ··· 396 397 } 397 398 } 398 399 399 - static int __devinit aty_init_pll_ct(const struct fb_info *info, 400 - union aty_pll *pll) 400 + static int aty_init_pll_ct(const struct fb_info *info, union aty_pll *pll) 401 401 { 402 402 struct atyfb_par *par = (struct atyfb_par *) info->par; 403 403 u8 mpost_div, xpost_div, sclk_post_div_real;
+1 -1
drivers/video/aty/mach64_cursor.c
··· 183 183 return 0; 184 184 } 185 185 186 - int __devinit aty_init_cursor(struct fb_info *info) 186 + int aty_init_cursor(struct fb_info *info) 187 187 { 188 188 unsigned long addr; 189 189
+10 -10
drivers/video/aty/radeon_base.c
··· 293 293 pci_unmap_rom(dev, rinfo->bios_seg); 294 294 } 295 295 296 - static int __devinit radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev *dev) 296 + static int radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev *dev) 297 297 { 298 298 void __iomem *rom; 299 299 u16 dptr; ··· 388 388 } 389 389 390 390 #ifdef CONFIG_X86 391 - static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo) 391 + static int radeon_find_mem_vbios(struct radeonfb_info *rinfo) 392 392 { 393 393 /* I simplified this code as we used to miss the signatures in 394 394 * a lot of case. It's now closer to XFree, we just don't check ··· 423 423 * Read XTAL (ref clock), SCLK and MCLK from Open Firmware device 424 424 * tree. Hopefully, ATI OF driver is kind enough to fill these 425 425 */ 426 - static int __devinit radeon_read_xtal_OF (struct radeonfb_info *rinfo) 426 + static int radeon_read_xtal_OF(struct radeonfb_info *rinfo) 427 427 { 428 428 struct device_node *dp = rinfo->of_node; 429 429 const u32 *val; ··· 453 453 /* 454 454 * Read PLL infos from chip registers 455 455 */ 456 - static int __devinit radeon_probe_pll_params(struct radeonfb_info *rinfo) 456 + static int radeon_probe_pll_params(struct radeonfb_info *rinfo) 457 457 { 458 458 unsigned char ppll_div_sel; 459 459 unsigned Ns, Nm, M; ··· 591 591 /* 592 592 * Retrieve PLL infos by different means (BIOS, Open Firmware, register probing...) 593 593 */ 594 - static void __devinit radeon_get_pllinfo(struct radeonfb_info *rinfo) 594 + static void radeon_get_pllinfo(struct radeonfb_info *rinfo) 595 595 { 596 596 /* 597 597 * In the case nothing works, these are defaults; they are mostly ··· 1868 1868 }; 1869 1869 1870 1870 1871 - static int __devinit radeon_set_fbinfo (struct radeonfb_info *rinfo) 1871 + static int radeon_set_fbinfo(struct radeonfb_info *rinfo) 1872 1872 { 1873 1873 struct fb_info *info = rinfo->info; 1874 1874 ··· 2143 2143 }; 2144 2144 2145 2145 2146 - static int __devinit radeonfb_pci_register (struct pci_dev *pdev, 2147 - const struct pci_device_id *ent) 2146 + static int radeonfb_pci_register(struct pci_dev *pdev, 2147 + const struct pci_device_id *ent) 2148 2148 { 2149 2149 struct fb_info *info; 2150 2150 struct radeonfb_info *rinfo; ··· 2407 2407 2408 2408 2409 2409 2410 - static void __devexit radeonfb_pci_unregister (struct pci_dev *pdev) 2410 + static void radeonfb_pci_unregister(struct pci_dev *pdev) 2411 2411 { 2412 2412 struct fb_info *info = pci_get_drvdata(pdev); 2413 2413 struct radeonfb_info *rinfo = info->par; ··· 2465 2465 .name = "radeonfb", 2466 2466 .id_table = radeonfb_pci_table, 2467 2467 .probe = radeonfb_pci_register, 2468 - .remove = __devexit_p(radeonfb_pci_unregister), 2468 + .remove = radeonfb_pci_unregister, 2469 2469 #ifdef CONFIG_PM 2470 2470 .suspend = radeonfb_pci_suspend, 2471 2471 .resume = radeonfb_pci_resume,
+12 -12
drivers/video/aty/radeon_monitor.c
··· 62 62 * models with broken OF probing by hard-coding known EDIDs for some Mac 63 63 * laptops internal LVDS panel. (XXX: not done yet) 64 64 */ 65 - static int __devinit radeon_parse_montype_prop(struct device_node *dp, u8 **out_EDID, 66 - int hdno) 65 + static int radeon_parse_montype_prop(struct device_node *dp, u8 **out_EDID, 66 + int hdno) 67 67 { 68 68 static char *propnames[] = { "DFP,EDID", "LCD,EDID", "EDID", 69 69 "EDID1", "EDID2", NULL }; ··· 115 115 return mt; 116 116 } 117 117 118 - static int __devinit radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_no, 119 - u8 **out_EDID) 118 + static int radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_no, 119 + u8 **out_EDID) 120 120 { 121 121 struct device_node *dp; 122 122 ··· 163 163 #endif /* CONFIG_PPC_OF || CONFIG_SPARC */ 164 164 165 165 166 - static int __devinit radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo) 166 + static int radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo) 167 167 { 168 168 unsigned long tmp, tmp0; 169 169 char stmp[30]; ··· 251 251 * doesn't quite work yet, but it's output is still useful for 252 252 * debugging 253 253 */ 254 - static void __devinit radeon_parse_connector_info(struct radeonfb_info *rinfo) 254 + static void radeon_parse_connector_info(struct radeonfb_info *rinfo) 255 255 { 256 256 int offset, chips, connectors, tmp, i, conn, type; 257 257 ··· 297 297 * as well and currently is only implemented for the CRT DAC, the 298 298 * code for the TVDAC is commented out in XFree as "non working" 299 299 */ 300 - static int __devinit radeon_crt_is_connected(struct radeonfb_info *rinfo, int is_crt_dac) 300 + static int radeon_crt_is_connected(struct radeonfb_info *rinfo, int is_crt_dac) 301 301 { 302 302 int connected = 0; 303 303 ··· 369 369 * Parse the "monitor_layout" string if any. This code is mostly 370 370 * copied from XFree's radeon driver 371 371 */ 372 - static int __devinit radeon_parse_monitor_layout(struct radeonfb_info *rinfo, 373 - const char *monitor_layout) 372 + static int radeon_parse_monitor_layout(struct radeonfb_info *rinfo, 373 + const char *monitor_layout) 374 374 { 375 375 char s1[5], s2[5]; 376 376 int i = 0, second = 0; ··· 433 433 * try to retrieve EDID. The algorithm here comes from XFree's radeon 434 434 * driver 435 435 */ 436 - void __devinit radeon_probe_screens(struct radeonfb_info *rinfo, 437 - const char *monitor_layout, int ignore_edid) 436 + void radeon_probe_screens(struct radeonfb_info *rinfo, 437 + const char *monitor_layout, int ignore_edid) 438 438 { 439 439 #ifdef CONFIG_FB_RADEON_I2C 440 440 int ddc_crt2_used = 0; ··· 753 753 * Build the modedb for head 1 (head 2 will come later), check panel infos 754 754 * from either BIOS or EDID, and pick up the default mode 755 755 */ 756 - void __devinit radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_option) 756 + void radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_option) 757 757 { 758 758 struct fb_info * info = rinfo->info; 759 759 int has_default_mode = 0;
+3 -3
drivers/video/au1100fb.c
··· 83 83 { { 8, 4, 0 }, { 4, 4, 0 }, { 0, 4, 0 }, { 0, 0, 0 } }, 84 84 }; 85 85 86 - static struct fb_fix_screeninfo au1100fb_fix __devinitdata = { 86 + static struct fb_fix_screeninfo au1100fb_fix = { 87 87 .id = "AU1100 FB", 88 88 .xpanstep = 1, 89 89 .ypanstep = 1, ··· 91 91 .accel = FB_ACCEL_NONE, 92 92 }; 93 93 94 - static struct fb_var_screeninfo au1100fb_var __devinitdata = { 94 + static struct fb_var_screeninfo au1100fb_var = { 95 95 .activate = FB_ACTIVATE_NOW, 96 96 .height = -1, 97 97 .width = -1, ··· 469 469 return 0; 470 470 } 471 471 472 - static int __devinit au1100fb_drv_probe(struct platform_device *dev) 472 + static int au1100fb_drv_probe(struct platform_device *dev) 473 473 { 474 474 struct au1100fb_device *fbdev = NULL; 475 475 struct resource *regs_res;
+3 -3
drivers/video/au1200fb.c
··· 1673 1673 } 1674 1674 1675 1675 /* AU1200 LCD controller device driver */ 1676 - static int __devinit au1200fb_drv_probe(struct platform_device *dev) 1676 + static int au1200fb_drv_probe(struct platform_device *dev) 1677 1677 { 1678 1678 struct au1200fb_device *fbdev; 1679 1679 struct au1200fb_platdata *pd; ··· 1798 1798 return ret; 1799 1799 } 1800 1800 1801 - static int __devexit au1200fb_drv_remove(struct platform_device *dev) 1801 + static int au1200fb_drv_remove(struct platform_device *dev) 1802 1802 { 1803 1803 struct au1200fb_platdata *pd = platform_get_drvdata(dev); 1804 1804 struct au1200fb_device *fbdev; ··· 1876 1876 .pm = AU1200FB_PMOPS, 1877 1877 }, 1878 1878 .probe = au1200fb_drv_probe, 1879 - .remove = __devexit_p(au1200fb_drv_remove), 1879 + .remove = au1200fb_drv_remove, 1880 1880 }; 1881 1881 1882 1882 /*-------------------------------------------------------------------------*/
+3 -3
drivers/video/auo_k1900fb.c
··· 156 156 return (par->update_cnt > 10); 157 157 } 158 158 159 - static int __devinit auok1900fb_probe(struct platform_device *pdev) 159 + static int auok1900fb_probe(struct platform_device *pdev) 160 160 { 161 161 struct auok190x_init_data init; 162 162 struct auok190x_board *board; ··· 177 177 return auok190x_common_probe(pdev, &init); 178 178 } 179 179 180 - static int __devexit auok1900fb_remove(struct platform_device *pdev) 180 + static int auok1900fb_remove(struct platform_device *pdev) 181 181 { 182 182 return auok190x_common_remove(pdev); 183 183 } 184 184 185 185 static struct platform_driver auok1900fb_driver = { 186 186 .probe = auok1900fb_probe, 187 - .remove = __devexit_p(auok1900fb_remove), 187 + .remove = auok1900fb_remove, 188 188 .driver = { 189 189 .owner = THIS_MODULE, 190 190 .name = "auo_k1900fb",
+3 -3
drivers/video/auo_k1901fb.c
··· 209 209 return (par->update_cnt > 10); 210 210 } 211 211 212 - static int __devinit auok1901fb_probe(struct platform_device *pdev) 212 + static int auok1901fb_probe(struct platform_device *pdev) 213 213 { 214 214 struct auok190x_init_data init; 215 215 struct auok190x_board *board; ··· 230 230 return auok190x_common_probe(pdev, &init); 231 231 } 232 232 233 - static int __devexit auok1901fb_remove(struct platform_device *pdev) 233 + static int auok1901fb_remove(struct platform_device *pdev) 234 234 { 235 235 return auok190x_common_remove(pdev); 236 236 } 237 237 238 238 static struct platform_driver auok1901fb_driver = { 239 239 .probe = auok1901fb_probe, 240 - .remove = __devexit_p(auok1901fb_remove), 240 + .remove = auok1901fb_remove, 241 241 .driver = { 242 242 .owner = THIS_MODULE, 243 243 .name = "auo_k1901fb",
+3 -3
drivers/video/auo_k190x.c
··· 773 773 * Common probe and remove code 774 774 */ 775 775 776 - int __devinit auok190x_common_probe(struct platform_device *pdev, 777 - struct auok190x_init_data *init) 776 + int auok190x_common_probe(struct platform_device *pdev, 777 + struct auok190x_init_data *init) 778 778 { 779 779 struct auok190x_board *board = init->board; 780 780 struct auok190xfb_par *par; ··· 1006 1006 } 1007 1007 EXPORT_SYMBOL_GPL(auok190x_common_probe); 1008 1008 1009 - int __devexit auok190x_common_remove(struct platform_device *pdev) 1009 + int auok190x_common_remove(struct platform_device *pdev) 1010 1010 { 1011 1011 struct fb_info *info = platform_get_drvdata(pdev); 1012 1012 struct auok190xfb_par *par = info->par;
+9 -9
drivers/video/bf537-lq035.c
··· 87 87 pr_err("i2c_smbus_write_byte_data fail: %d\n", nr); 88 88 } 89 89 90 - static int __devinit ad5280_probe(struct i2c_client *client, 91 - const struct i2c_device_id *id) 90 + static int ad5280_probe(struct i2c_client *client, 91 + const struct i2c_device_id *id) 92 92 { 93 93 int ret; 94 94 if (!i2c_check_functionality(client->adapter, ··· 108 108 return 0; 109 109 } 110 110 111 - static int __devexit ad5280_remove(struct i2c_client *client) 111 + static int ad5280_remove(struct i2c_client *client) 112 112 { 113 113 ad5280_client = NULL; 114 114 return 0; ··· 126 126 .name = "bf537-lq035-ad5280", 127 127 }, 128 128 .probe = ad5280_probe, 129 - .remove = __devexit_p(ad5280_remove), 129 + .remove = ad5280_remove, 130 130 .id_table = ad5280_id, 131 131 }; 132 132 ··· 360 360 return 0; 361 361 } 362 362 363 - static int __devinit request_ports(void) 363 + static int request_ports(void) 364 364 { 365 365 u16 tmr_req[] = TIMERS; 366 366 ··· 443 443 .transp = {0, 0, 0}, 444 444 }; 445 445 446 - static struct fb_fix_screeninfo bfin_lq035_fb_fix __devinitdata = { 446 + static struct fb_fix_screeninfo bfin_lq035_fb_fix = { 447 447 .id = KBUILD_MODNAME, 448 448 .smem_len = ACTIVE_VIDEO_MEM_SIZE, 449 449 .type = FB_TYPE_PACKED_PIXELS, ··· 686 686 687 687 static struct lcd_device *lcd_dev; 688 688 689 - static int __devinit bfin_lq035_probe(struct platform_device *pdev) 689 + static int bfin_lq035_probe(struct platform_device *pdev) 690 690 { 691 691 struct backlight_properties props; 692 692 dma_addr_t dma_handle; ··· 816 816 return ret; 817 817 } 818 818 819 - static int __devexit bfin_lq035_remove(struct platform_device *pdev) 819 + static int bfin_lq035_remove(struct platform_device *pdev) 820 820 { 821 821 if (fb_buffer != NULL) 822 822 dma_free_coherent(NULL, TOTAL_VIDEO_MEM_SIZE, fb_buffer, 0); ··· 889 889 890 890 static struct platform_driver bfin_lq035_driver = { 891 891 .probe = bfin_lq035_probe, 892 - .remove = __devexit_p(bfin_lq035_remove), 892 + .remove = bfin_lq035_remove, 893 893 .suspend = bfin_lq035_suspend, 894 894 .resume = bfin_lq035_resume, 895 895 .driver = {
+3 -3
drivers/video/bf54x-lq043fb.c
··· 497 497 return IRQ_HANDLED; 498 498 } 499 499 500 - static int __devinit bfin_bf54x_probe(struct platform_device *pdev) 500 + static int bfin_bf54x_probe(struct platform_device *pdev) 501 501 { 502 502 #ifndef NO_BL_SUPPORT 503 503 struct backlight_properties props; ··· 686 686 return ret; 687 687 } 688 688 689 - static int __devexit bfin_bf54x_remove(struct platform_device *pdev) 689 + static int bfin_bf54x_remove(struct platform_device *pdev) 690 690 { 691 691 692 692 struct fb_info *fbinfo = platform_get_drvdata(pdev); ··· 754 754 755 755 static struct platform_driver bfin_bf54x_driver = { 756 756 .probe = bfin_bf54x_probe, 757 - .remove = __devexit_p(bfin_bf54x_remove), 757 + .remove = bfin_bf54x_remove, 758 758 .suspend = bfin_bf54x_suspend, 759 759 .resume = bfin_bf54x_resume, 760 760 .driver = {
+7 -7
drivers/video/bfin-lq035q1-fb.c
··· 137 137 return ret; 138 138 } 139 139 140 - static int __devinit lq035q1_spidev_probe(struct spi_device *spi) 140 + static int lq035q1_spidev_probe(struct spi_device *spi) 141 141 { 142 142 int ret; 143 143 struct spi_control *ctl; ··· 358 358 gpio_free(P_IDENT(P_PPI0_FS3)); 359 359 } 360 360 361 - static int __devinit bfin_lq035q1_request_ports(struct platform_device *pdev, 362 - unsigned ppi16) 361 + static int bfin_lq035q1_request_ports(struct platform_device *pdev, 362 + unsigned ppi16) 363 363 { 364 364 int ret; 365 365 /* ANOMALY_05000400 - PPI Does Not Start Properly In Specific Mode: ··· 555 555 return IRQ_HANDLED; 556 556 } 557 557 558 - static int __devinit bfin_lq035q1_probe(struct platform_device *pdev) 558 + static int bfin_lq035q1_probe(struct platform_device *pdev) 559 559 { 560 560 struct bfin_lq035q1fb_info *info; 561 561 struct fb_info *fbinfo; ··· 706 706 707 707 info->spidrv.driver.name = DRIVER_NAME"-spi"; 708 708 info->spidrv.probe = lq035q1_spidev_probe; 709 - info->spidrv.remove = __devexit_p(lq035q1_spidev_remove); 709 + info->spidrv.remove = lq035q1_spidev_remove; 710 710 info->spidrv.shutdown = lq035q1_spidev_shutdown; 711 711 info->spidrv.suspend = lq035q1_spidev_suspend; 712 712 info->spidrv.resume = lq035q1_spidev_resume; ··· 764 764 return ret; 765 765 } 766 766 767 - static int __devexit bfin_lq035q1_remove(struct platform_device *pdev) 767 + static int bfin_lq035q1_remove(struct platform_device *pdev) 768 768 { 769 769 struct fb_info *fbinfo = platform_get_drvdata(pdev); 770 770 struct bfin_lq035q1fb_info *info = fbinfo->par; ··· 845 845 846 846 static struct platform_driver bfin_lq035q1_driver = { 847 847 .probe = bfin_lq035q1_probe, 848 - .remove = __devexit_p(bfin_lq035q1_remove), 848 + .remove = bfin_lq035q1_remove, 849 849 .driver = { 850 850 .name = DRIVER_NAME, 851 851 #ifdef CONFIG_PM
+3 -3
drivers/video/bfin-t350mcqb-fb.c
··· 418 418 return IRQ_HANDLED; 419 419 } 420 420 421 - static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev) 421 + static int bfin_t350mcqb_probe(struct platform_device *pdev) 422 422 { 423 423 #ifndef NO_BL_SUPPORT 424 424 struct backlight_properties props; ··· 583 583 return ret; 584 584 } 585 585 586 - static int __devexit bfin_t350mcqb_remove(struct platform_device *pdev) 586 + static int bfin_t350mcqb_remove(struct platform_device *pdev) 587 587 { 588 588 589 589 struct fb_info *fbinfo = platform_get_drvdata(pdev); ··· 658 658 659 659 static struct platform_driver bfin_t350mcqb_driver = { 660 660 .probe = bfin_t350mcqb_probe, 661 - .remove = __devexit_p(bfin_t350mcqb_remove), 661 + .remove = bfin_t350mcqb_remove, 662 662 .suspend = bfin_t350mcqb_suspend, 663 663 .resume = bfin_t350mcqb_resume, 664 664 .driver = {
+5 -5
drivers/video/bfin_adv7393fb.c
··· 88 88 .transp = {0, 0, 0}, 89 89 }; 90 90 91 - static struct fb_fix_screeninfo bfin_adv7393_fb_fix __devinitdata = { 91 + static struct fb_fix_screeninfo bfin_adv7393_fb_fix = { 92 92 .id = "BFIN ADV7393", 93 93 .smem_len = 720 * 480 * 2, 94 94 .type = FB_TYPE_PACKED_PIXELS, ··· 368 368 return count; 369 369 } 370 370 371 - static int __devinit bfin_adv7393_fb_probe(struct i2c_client *client, 372 - const struct i2c_device_id *id) 371 + static int bfin_adv7393_fb_probe(struct i2c_client *client, 372 + const struct i2c_device_id *id) 373 373 { 374 374 int ret = 0; 375 375 struct proc_dir_entry *entry; ··· 719 719 return 0; 720 720 } 721 721 722 - static int __devexit bfin_adv7393_fb_remove(struct i2c_client *client) 722 + static int bfin_adv7393_fb_remove(struct i2c_client *client) 723 723 { 724 724 struct adv7393fb_device *fbdev = i2c_get_clientdata(client); 725 725 ··· 794 794 #endif 795 795 }, 796 796 .probe = bfin_adv7393_fb_probe, 797 - .remove = __devexit_p(bfin_adv7393_fb_remove), 797 + .remove = bfin_adv7393_fb_remove, 798 798 .id_table = bfin_adv7393_id, 799 799 }; 800 800
+8 -8
drivers/video/broadsheetfb.c
··· 91 91 #define DPY_W 800 92 92 #define DPY_H 600 93 93 94 - static struct fb_fix_screeninfo broadsheetfb_fix __devinitdata = { 94 + static struct fb_fix_screeninfo broadsheetfb_fix = { 95 95 .id = "broadsheetfb", 96 96 .type = FB_TYPE_PACKED_PIXELS, 97 97 .visual = FB_VISUAL_STATIC_PSEUDOCOLOR, ··· 102 102 .accel = FB_ACCEL_NONE, 103 103 }; 104 104 105 - static struct fb_var_screeninfo broadsheetfb_var __devinitdata = { 105 + static struct fb_var_screeninfo broadsheetfb_var = { 106 106 .xres = DPY_W, 107 107 .yres = DPY_H, 108 108 .xres_virtual = DPY_W, ··· 774 774 broadsheet_loadstore_waveform); 775 775 776 776 /* upper level functions that manipulate the display and other stuff */ 777 - static void __devinit broadsheet_init_display(struct broadsheetfb_par *par) 777 + static void broadsheet_init_display(struct broadsheetfb_par *par) 778 778 { 779 779 u16 args[5]; 780 780 int xres = par->info->var.xres; ··· 834 834 par->board->wait_for_rdy(par); 835 835 } 836 836 837 - static void __devinit broadsheet_identify(struct broadsheetfb_par *par) 837 + static void broadsheet_identify(struct broadsheetfb_par *par) 838 838 { 839 839 u16 rev, prc; 840 840 struct device *dev = par->info->device; ··· 849 849 dev_warn(dev, "Unrecognized Broadsheet Revision\n"); 850 850 } 851 851 852 - static void __devinit broadsheet_init(struct broadsheetfb_par *par) 852 + static void broadsheet_init(struct broadsheetfb_par *par) 853 853 { 854 854 broadsheet_send_command(par, BS_CMD_INIT_SYS_RUN); 855 855 /* the controller needs a second */ ··· 1058 1058 .deferred_io = broadsheetfb_dpy_deferred_io, 1059 1059 }; 1060 1060 1061 - static int __devinit broadsheetfb_probe(struct platform_device *dev) 1061 + static int broadsheetfb_probe(struct platform_device *dev) 1062 1062 { 1063 1063 struct fb_info *info; 1064 1064 struct broadsheet_board *board; ··· 1190 1190 1191 1191 } 1192 1192 1193 - static int __devexit broadsheetfb_remove(struct platform_device *dev) 1193 + static int broadsheetfb_remove(struct platform_device *dev) 1194 1194 { 1195 1195 struct fb_info *info = platform_get_drvdata(dev); 1196 1196 ··· 1211 1211 1212 1212 static struct platform_driver broadsheetfb_driver = { 1213 1213 .probe = broadsheetfb_probe, 1214 - .remove = __devexit_p(broadsheetfb_remove), 1214 + .remove = broadsheetfb_remove, 1215 1215 .driver = { 1216 1216 .owner = THIS_MODULE, 1217 1217 .name = "broadsheetfb",
+11 -12
drivers/video/bw2.c
··· 179 179 * Initialisation 180 180 */ 181 181 182 - static void __devinit bw2_init_fix(struct fb_info *info, int linebytes) 182 + static void bw2_init_fix(struct fb_info *info, int linebytes) 183 183 { 184 184 strlcpy(info->fix.id, "bwtwo", sizeof(info->fix.id)); 185 185 ··· 191 191 info->fix.accel = FB_ACCEL_SUN_BWTWO; 192 192 } 193 193 194 - static u8 bw2regs_1600[] __devinitdata = { 194 + static u8 bw2regs_1600[] = { 195 195 0x14, 0x8b, 0x15, 0x28, 0x16, 0x03, 0x17, 0x13, 196 196 0x18, 0x7b, 0x19, 0x05, 0x1a, 0x34, 0x1b, 0x2e, 197 197 0x1c, 0x00, 0x1d, 0x0a, 0x1e, 0xff, 0x1f, 0x01, 198 198 0x10, 0x21, 0 199 199 }; 200 200 201 - static u8 bw2regs_ecl[] __devinitdata = { 201 + static u8 bw2regs_ecl[] = { 202 202 0x14, 0x65, 0x15, 0x1e, 0x16, 0x04, 0x17, 0x0c, 203 203 0x18, 0x5e, 0x19, 0x03, 0x1a, 0xa7, 0x1b, 0x23, 204 204 0x1c, 0x00, 0x1d, 0x08, 0x1e, 0xff, 0x1f, 0x01, 205 205 0x10, 0x20, 0 206 206 }; 207 207 208 - static u8 bw2regs_analog[] __devinitdata = { 208 + static u8 bw2regs_analog[] = { 209 209 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x03, 0x17, 0x13, 210 210 0x18, 0xb0, 0x19, 0x03, 0x1a, 0xa6, 0x1b, 0x22, 211 211 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01, 212 212 0x10, 0x20, 0 213 213 }; 214 214 215 - static u8 bw2regs_76hz[] __devinitdata = { 215 + static u8 bw2regs_76hz[] = { 216 216 0x14, 0xb7, 0x15, 0x27, 0x16, 0x03, 0x17, 0x0f, 217 217 0x18, 0xae, 0x19, 0x03, 0x1a, 0xae, 0x1b, 0x2a, 218 218 0x1c, 0x01, 0x1d, 0x09, 0x1e, 0xff, 0x1f, 0x01, 219 219 0x10, 0x24, 0 220 220 }; 221 221 222 - static u8 bw2regs_66hz[] __devinitdata = { 222 + static u8 bw2regs_66hz[] = { 223 223 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x04, 0x17, 0x14, 224 224 0x18, 0xae, 0x19, 0x03, 0x1a, 0xa8, 0x1b, 0x24, 225 225 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01, 226 226 0x10, 0x20, 0 227 227 }; 228 228 229 - static int __devinit bw2_do_default_mode(struct bw2_par *par, 230 - struct fb_info *info, 231 - int *linebytes) 229 + static int bw2_do_default_mode(struct bw2_par *par, struct fb_info *info, 230 + int *linebytes) 232 231 { 233 232 u8 status, mon; 234 233 u8 *p; ··· 272 273 return 0; 273 274 } 274 275 275 - static int __devinit bw2_probe(struct platform_device *op) 276 + static int bw2_probe(struct platform_device *op) 276 277 { 277 278 struct device_node *dp = op->dev.of_node; 278 279 struct fb_info *info; ··· 351 352 return err; 352 353 } 353 354 354 - static int __devexit bw2_remove(struct platform_device *op) 355 + static int bw2_remove(struct platform_device *op) 355 356 { 356 357 struct fb_info *info = dev_get_drvdata(&op->dev); 357 358 struct bw2_par *par = info->par; ··· 383 384 .of_match_table = bw2_match, 384 385 }, 385 386 .probe = bw2_probe, 386 - .remove = __devexit_p(bw2_remove), 387 + .remove = bw2_remove, 387 388 }; 388 389 389 390 static int __init bw2_init(void)
+8 -8
drivers/video/carminefb.c
··· 78 78 u32 pseudo_palette[16]; 79 79 }; 80 80 81 - static struct fb_fix_screeninfo carminefb_fix __devinitdata = { 81 + static struct fb_fix_screeninfo carminefb_fix = { 82 82 .id = "Carmine", 83 83 .type = FB_TYPE_PACKED_PIXELS, 84 84 .visual = FB_VISUAL_TRUECOLOR, ··· 537 537 .fb_setcolreg = carmine_setcolreg, 538 538 }; 539 539 540 - static int __devinit alloc_carmine_fb(void __iomem *regs, void __iomem *smem_base, 541 - int smem_offset, struct device *device, struct fb_info **rinfo) 540 + static int alloc_carmine_fb(void __iomem *regs, void __iomem *smem_base, 541 + int smem_offset, struct device *device, 542 + struct fb_info **rinfo) 542 543 { 543 544 int ret; 544 545 struct fb_info *info; ··· 607 606 } 608 607 } 609 608 610 - static int __devinit carminefb_probe(struct pci_dev *dev, 611 - const struct pci_device_id *ent) 609 + static int carminefb_probe(struct pci_dev *dev, const struct pci_device_id *ent) 612 610 { 613 611 struct carmine_hw *hw; 614 612 struct device *device = &dev->dev; ··· 721 721 return ret; 722 722 } 723 723 724 - static void __devexit carminefb_remove(struct pci_dev *dev) 724 + static void carminefb_remove(struct pci_dev *dev) 725 725 { 726 726 struct carmine_hw *hw = pci_get_drvdata(dev); 727 727 struct fb_fix_screeninfo fix; ··· 752 752 } 753 753 754 754 #define PCI_VENDOR_ID_FUJITU_LIMITED 0x10cf 755 - static struct pci_device_id carmine_devices[] __devinitdata = { 755 + static struct pci_device_id carmine_devices[] = { 756 756 { 757 757 PCI_DEVICE(PCI_VENDOR_ID_FUJITU_LIMITED, 0x202b)}, 758 758 {0, 0, 0, 0, 0, 0, 0} ··· 764 764 .name = "carminefb", 765 765 .id_table = carmine_devices, 766 766 .probe = carminefb_probe, 767 - .remove = __devexit_p(carminefb_remove), 767 + .remove = carminefb_remove, 768 768 }; 769 769 770 770 static int __init carminefb_init(void)
+6 -6
drivers/video/cg14.c
··· 352 352 * Initialisation 353 353 */ 354 354 355 - static void __devinit cg14_init_fix(struct fb_info *info, int linebytes, 356 - struct device_node *dp) 355 + static void cg14_init_fix(struct fb_info *info, int linebytes, 356 + struct device_node *dp) 357 357 { 358 358 const char *name = dp->name; 359 359 ··· 367 367 info->fix.accel = FB_ACCEL_SUN_CG14; 368 368 } 369 369 370 - static struct sbus_mmap_map __cg14_mmap_map[CG14_MMAP_ENTRIES] __devinitdata = { 370 + static struct sbus_mmap_map __cg14_mmap_map[CG14_MMAP_ENTRIES] = { 371 371 { 372 372 .voff = CG14_REGS, 373 373 .poff = 0x80000000, ··· 463 463 info->screen_base, info->fix.smem_len); 464 464 } 465 465 466 - static int __devinit cg14_probe(struct platform_device *op) 466 + static int cg14_probe(struct platform_device *op) 467 467 { 468 468 struct device_node *dp = op->dev.of_node; 469 469 struct fb_info *info; ··· 571 571 return err; 572 572 } 573 573 574 - static int __devexit cg14_remove(struct platform_device *op) 574 + static int cg14_remove(struct platform_device *op) 575 575 { 576 576 struct fb_info *info = dev_get_drvdata(&op->dev); 577 577 struct cg14_par *par = info->par; ··· 603 603 .of_match_table = cg14_match, 604 604 }, 605 605 .probe = cg14_probe, 606 - .remove = __devexit_p(cg14_remove), 606 + .remove = cg14_remove, 607 607 }; 608 608 609 609 static int __init cg14_init(void)
+13 -13
drivers/video/cg3.c
··· 243 243 * Initialisation 244 244 */ 245 245 246 - static void __devinit cg3_init_fix(struct fb_info *info, int linebytes, 247 - struct device_node *dp) 246 + static void cg3_init_fix(struct fb_info *info, int linebytes, 247 + struct device_node *dp) 248 248 { 249 249 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); 250 250 ··· 256 256 info->fix.accel = FB_ACCEL_SUN_CGTHREE; 257 257 } 258 258 259 - static void __devinit cg3_rdi_maybe_fixup_var(struct fb_var_screeninfo *var, 260 - struct device_node *dp) 259 + static void cg3_rdi_maybe_fixup_var(struct fb_var_screeninfo *var, 260 + struct device_node *dp) 261 261 { 262 262 const char *params; 263 263 char *p; ··· 279 279 } 280 280 } 281 281 282 - static u8 cg3regvals_66hz[] __devinitdata = { /* 1152 x 900, 66 Hz */ 282 + static u8 cg3regvals_66hz[] = { /* 1152 x 900, 66 Hz */ 283 283 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x04, 0x17, 0x14, 284 284 0x18, 0xae, 0x19, 0x03, 0x1a, 0xa8, 0x1b, 0x24, 285 285 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01, 286 286 0x10, 0x20, 0 287 287 }; 288 288 289 - static u8 cg3regvals_76hz[] __devinitdata = { /* 1152 x 900, 76 Hz */ 289 + static u8 cg3regvals_76hz[] = { /* 1152 x 900, 76 Hz */ 290 290 0x14, 0xb7, 0x15, 0x27, 0x16, 0x03, 0x17, 0x0f, 291 291 0x18, 0xae, 0x19, 0x03, 0x1a, 0xae, 0x1b, 0x2a, 292 292 0x1c, 0x01, 0x1d, 0x09, 0x1e, 0xff, 0x1f, 0x01, 293 293 0x10, 0x24, 0 294 294 }; 295 295 296 - static u8 cg3regvals_rdi[] __devinitdata = { /* 640 x 480, cgRDI */ 296 + static u8 cg3regvals_rdi[] = { /* 640 x 480, cgRDI */ 297 297 0x14, 0x70, 0x15, 0x20, 0x16, 0x08, 0x17, 0x10, 298 298 0x18, 0x06, 0x19, 0x02, 0x1a, 0x31, 0x1b, 0x51, 299 299 0x1c, 0x06, 0x1d, 0x0c, 0x1e, 0xff, 0x1f, 0x01, 300 300 0x10, 0x22, 0 301 301 }; 302 302 303 - static u8 *cg3_regvals[] __devinitdata = { 303 + static u8 *cg3_regvals[] = { 304 304 cg3regvals_66hz, cg3regvals_76hz, cg3regvals_rdi 305 305 }; 306 306 307 - static u_char cg3_dacvals[] __devinitdata = { 307 + static u_char cg3_dacvals[] = { 308 308 4, 0xff, 5, 0x00, 6, 0x70, 7, 0x00, 0 309 309 }; 310 310 311 - static int __devinit cg3_do_default_mode(struct cg3_par *par) 311 + static int cg3_do_default_mode(struct cg3_par *par) 312 312 { 313 313 enum cg3_type type; 314 314 u8 *p; ··· 346 346 return 0; 347 347 } 348 348 349 - static int __devinit cg3_probe(struct platform_device *op) 349 + static int cg3_probe(struct platform_device *op) 350 350 { 351 351 struct device_node *dp = op->dev.of_node; 352 352 struct fb_info *info; ··· 433 433 return err; 434 434 } 435 435 436 - static int __devexit cg3_remove(struct platform_device *op) 436 + static int cg3_remove(struct platform_device *op) 437 437 { 438 438 struct fb_info *info = dev_get_drvdata(&op->dev); 439 439 struct cg3_par *par = info->par; ··· 469 469 .of_match_table = cg3_match, 470 470 }, 471 471 .probe = cg3_probe, 472 - .remove = __devexit_p(cg3_remove), 472 + .remove = cg3_remove, 473 473 }; 474 474 475 475 static int __init cg3_init(void)
+6 -6
drivers/video/cg6.c
··· 607 607 * Initialisation 608 608 */ 609 609 610 - static void __devinit cg6_init_fix(struct fb_info *info, int linebytes) 610 + static void cg6_init_fix(struct fb_info *info, int linebytes) 611 611 { 612 612 struct cg6_par *par = (struct cg6_par *)info->par; 613 613 const char *cg6_cpu_name, *cg6_card_name; ··· 649 649 } 650 650 651 651 /* Initialize Brooktree DAC */ 652 - static void __devinit cg6_bt_init(struct cg6_par *par) 652 + static void cg6_bt_init(struct cg6_par *par) 653 653 { 654 654 struct bt_regs __iomem *bt = par->bt; 655 655 ··· 663 663 sbus_writel(0x00 << 24, &bt->control); 664 664 } 665 665 666 - static void __devinit cg6_chip_init(struct fb_info *info) 666 + static void cg6_chip_init(struct fb_info *info) 667 667 { 668 668 struct cg6_par *par = (struct cg6_par *)info->par; 669 669 struct cg6_tec __iomem *tec = par->tec; ··· 737 737 info->fix.smem_len); 738 738 } 739 739 740 - static int __devinit cg6_probe(struct platform_device *op) 740 + static int cg6_probe(struct platform_device *op) 741 741 { 742 742 struct device_node *dp = op->dev.of_node; 743 743 struct fb_info *info; ··· 827 827 return err; 828 828 } 829 829 830 - static int __devexit cg6_remove(struct platform_device *op) 830 + static int cg6_remove(struct platform_device *op) 831 831 { 832 832 struct fb_info *info = dev_get_drvdata(&op->dev); 833 833 struct cg6_par *par = info->par; ··· 862 862 .of_match_table = cg6_match, 863 863 }, 864 864 .probe = cg6_probe, 865 - .remove = __devexit_p(cg6_remove), 865 + .remove = cg6_remove, 866 866 }; 867 867 868 868 static int __init cg6_init(void)
+6 -7
drivers/video/chipsfb.c
··· 292 292 write_fr(chips_init_fr[i].addr, chips_init_fr[i].data); 293 293 } 294 294 295 - static struct fb_fix_screeninfo chipsfb_fix __devinitdata = { 295 + static struct fb_fix_screeninfo chipsfb_fix = { 296 296 .id = "C&T 65550", 297 297 .type = FB_TYPE_PACKED_PIXELS, 298 298 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 309 309 .smem_len = 0x100000, /* 1MB */ 310 310 }; 311 311 312 - static struct fb_var_screeninfo chipsfb_var __devinitdata = { 312 + static struct fb_var_screeninfo chipsfb_var = { 313 313 .xres = 800, 314 314 .yres = 600, 315 315 .xres_virtual = 800, ··· 330 330 .vsync_len = 8, 331 331 }; 332 332 333 - static void __devinit init_chips(struct fb_info *p, unsigned long addr) 333 + static void init_chips(struct fb_info *p, unsigned long addr) 334 334 { 335 335 memset(p->screen_base, 0, 0x100000); 336 336 ··· 347 347 chips_hw_init(); 348 348 } 349 349 350 - static int __devinit 351 - chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) 350 + static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) 352 351 { 353 352 struct fb_info *p; 354 353 unsigned long addr, size; ··· 437 438 return rc; 438 439 } 439 440 440 - static void __devexit chipsfb_remove(struct pci_dev *dp) 441 + static void chipsfb_remove(struct pci_dev *dp) 441 442 { 442 443 struct fb_info *p = pci_get_drvdata(dp); 443 444 ··· 494 495 .name = "chipsfb", 495 496 .id_table = chipsfb_pci_tbl, 496 497 .probe = chipsfb_pci_init, 497 - .remove = __devexit_p(chipsfb_remove), 498 + .remove = chipsfb_remove, 498 499 #ifdef CONFIG_PM 499 500 .suspend = chipsfb_pci_suspend, 500 501 .resume = chipsfb_pci_resume,
+22 -22
drivers/video/cirrusfb.c
··· 290 290 zorro_id ramid2; /* Zorro ID of optional second RAM device */ 291 291 }; 292 292 293 - static const struct zorrocl zcl_sd64 __devinitconst = { 293 + static const struct zorrocl zcl_sd64 = { 294 294 .type = BT_SD64, 295 295 .ramid = ZORRO_PROD_HELFRICH_SD64_RAM, 296 296 }; 297 297 298 - static const struct zorrocl zcl_piccolo __devinitconst = { 298 + static const struct zorrocl zcl_piccolo = { 299 299 .type = BT_PICCOLO, 300 300 .ramid = ZORRO_PROD_HELFRICH_PICCOLO_RAM, 301 301 }; 302 302 303 - static const struct zorrocl zcl_picasso __devinitconst = { 303 + static const struct zorrocl zcl_picasso = { 304 304 .type = BT_PICASSO, 305 305 .ramid = ZORRO_PROD_VILLAGE_TRONIC_PICASSO_II_II_PLUS_RAM, 306 306 }; 307 307 308 - static const struct zorrocl zcl_spectrum __devinitconst = { 308 + static const struct zorrocl zcl_spectrum = { 309 309 .type = BT_SPECTRUM, 310 310 .ramid = ZORRO_PROD_GVP_EGS_28_24_SPECTRUM_RAM, 311 311 }; 312 312 313 - static const struct zorrocl zcl_picasso4_z3 __devinitconst = { 313 + static const struct zorrocl zcl_picasso4_z3 = { 314 314 .type = BT_PICASSO4, 315 315 .regoffset = 0x00600000, 316 316 .ramsize = 4 * MB_, 317 317 .ramoffset = 0x01000000, /* 0x02000000 for 64 MiB boards */ 318 318 }; 319 319 320 - static const struct zorrocl zcl_picasso4_z2 __devinitconst = { 320 + static const struct zorrocl zcl_picasso4_z2 = { 321 321 .type = BT_PICASSO4, 322 322 .regoffset = 0x10000, 323 323 .ramid = ZORRO_PROD_VILLAGE_TRONIC_PICASSO_IV_Z2_RAM1, ··· 325 325 }; 326 326 327 327 328 - static const struct zorro_device_id cirrusfb_zorro_table[] __devinitconst = { 328 + static const struct zorro_device_id cirrusfb_zorro_table[] = { 329 329 { 330 330 .id = ZORRO_PROD_HELFRICH_SD64_REG, 331 331 .driver_data = (unsigned long)&zcl_sd64, ··· 372 372 void (*unmap)(struct fb_info *info); 373 373 }; 374 374 375 - static bool noaccel __devinitdata; 376 - static char *mode_option __devinitdata = "640x480@60"; 375 + static bool noaccel; 376 + static char *mode_option = "640x480@60"; 377 377 378 378 /****************************************************************************/ 379 379 /**** BEGIN PROTOTYPES ******************************************************/ ··· 1892 1892 * based on the DRAM bandwidth bit and DRAM bank switching bit. This 1893 1893 * works with 1MB, 2MB and 4MB configurations (which the Motorola boards 1894 1894 * seem to have. */ 1895 - static unsigned int __devinit cirrusfb_get_memsize(struct fb_info *info, 1896 - u8 __iomem *regbase) 1895 + static unsigned int cirrusfb_get_memsize(struct fb_info *info, 1896 + u8 __iomem *regbase) 1897 1897 { 1898 1898 unsigned long mem; 1899 1899 struct cirrusfb_info *cinfo = info->par; ··· 2003 2003 .fb_imageblit = cirrusfb_imageblit, 2004 2004 }; 2005 2005 2006 - static int __devinit cirrusfb_set_fbinfo(struct fb_info *info) 2006 + static int cirrusfb_set_fbinfo(struct fb_info *info) 2007 2007 { 2008 2008 struct cirrusfb_info *cinfo = info->par; 2009 2009 struct fb_var_screeninfo *var = &info->var; ··· 2052 2052 return 0; 2053 2053 } 2054 2054 2055 - static int __devinit cirrusfb_register(struct fb_info *info) 2055 + static int cirrusfb_register(struct fb_info *info) 2056 2056 { 2057 2057 struct cirrusfb_info *cinfo = info->par; 2058 2058 int err; ··· 2096 2096 return err; 2097 2097 } 2098 2098 2099 - static void __devexit cirrusfb_cleanup(struct fb_info *info) 2099 + static void cirrusfb_cleanup(struct fb_info *info) 2100 2100 { 2101 2101 struct cirrusfb_info *cinfo = info->par; 2102 2102 ··· 2109 2109 } 2110 2110 2111 2111 #ifdef CONFIG_PCI 2112 - static int __devinit cirrusfb_pci_register(struct pci_dev *pdev, 2113 - const struct pci_device_id *ent) 2112 + static int cirrusfb_pci_register(struct pci_dev *pdev, 2113 + const struct pci_device_id *ent) 2114 2114 { 2115 2115 struct cirrusfb_info *cinfo; 2116 2116 struct fb_info *info; ··· 2215 2215 return ret; 2216 2216 } 2217 2217 2218 - static void __devexit cirrusfb_pci_unregister(struct pci_dev *pdev) 2218 + static void cirrusfb_pci_unregister(struct pci_dev *pdev) 2219 2219 { 2220 2220 struct fb_info *info = pci_get_drvdata(pdev); 2221 2221 ··· 2226 2226 .name = "cirrusfb", 2227 2227 .id_table = cirrusfb_pci_table, 2228 2228 .probe = cirrusfb_pci_register, 2229 - .remove = __devexit_p(cirrusfb_pci_unregister), 2229 + .remove = cirrusfb_pci_unregister, 2230 2230 #ifdef CONFIG_PM 2231 2231 #if 0 2232 2232 .suspend = cirrusfb_pci_suspend, ··· 2237 2237 #endif /* CONFIG_PCI */ 2238 2238 2239 2239 #ifdef CONFIG_ZORRO 2240 - static int __devinit cirrusfb_zorro_register(struct zorro_dev *z, 2241 - const struct zorro_device_id *ent) 2240 + static int cirrusfb_zorro_register(struct zorro_dev *z, 2241 + const struct zorro_device_id *ent) 2242 2242 { 2243 2243 struct fb_info *info; 2244 2244 int error; ··· 2352 2352 return error; 2353 2353 } 2354 2354 2355 - void __devexit cirrusfb_zorro_unregister(struct zorro_dev *z) 2355 + void cirrusfb_zorro_unregister(struct zorro_dev *z) 2356 2356 { 2357 2357 struct fb_info *info = zorro_get_drvdata(z); 2358 2358 ··· 2364 2364 .name = "cirrusfb", 2365 2365 .id_table = cirrusfb_zorro_table, 2366 2366 .probe = cirrusfb_zorro_register, 2367 - .remove = __devexit_p(cirrusfb_zorro_unregister), 2367 + .remove = cirrusfb_zorro_unregister, 2368 2368 }; 2369 2369 #endif /* CONFIG_ZORRO */ 2370 2370
+4 -4
drivers/video/clps711xfb.c
··· 178 178 .fb_imageblit = cfb_imageblit, 179 179 }; 180 180 181 - static void __devinit clps711x_guess_lcd_params(struct fb_info *info) 181 + static void clps711x_guess_lcd_params(struct fb_info *info) 182 182 { 183 183 unsigned int lcdcon, syscon, size; 184 184 unsigned long phys_base = PAGE_OFFSET; ··· 266 266 info->fix.type = FB_TYPE_PACKED_PIXELS; 267 267 } 268 268 269 - static int __devinit clps711x_fb_probe(struct platform_device *pdev) 269 + static int clps711x_fb_probe(struct platform_device *pdev) 270 270 { 271 271 int err = -ENOMEM; 272 272 ··· 291 291 out: return err; 292 292 } 293 293 294 - static int __devexit clps711x_fb_remove(struct platform_device *pdev) 294 + static int clps711x_fb_remove(struct platform_device *pdev) 295 295 { 296 296 unregister_framebuffer(cfb); 297 297 kfree(cfb); ··· 305 305 .owner = THIS_MODULE, 306 306 }, 307 307 .probe = clps711x_fb_probe, 308 - .remove = __devexit_p(clps711x_fb_remove), 308 + .remove = clps711x_fb_remove, 309 309 }; 310 310 module_platform_driver(clps711x_fb_driver); 311 311
+4 -4
drivers/video/cobalt_lcdfb.c
··· 167 167 lcd_write_control(info, LCD_RESET); 168 168 } 169 169 170 - static struct fb_fix_screeninfo cobalt_lcdfb_fix __devinitdata = { 170 + static struct fb_fix_screeninfo cobalt_lcdfb_fix = { 171 171 .id = "cobalt-lcd", 172 172 .type = FB_TYPE_TEXT, 173 173 .type_aux = FB_AUX_TEXT_MDA, ··· 331 331 .fb_cursor = cobalt_lcdfb_cursor, 332 332 }; 333 333 334 - static int __devinit cobalt_lcdfb_probe(struct platform_device *dev) 334 + static int cobalt_lcdfb_probe(struct platform_device *dev) 335 335 { 336 336 struct fb_info *info; 337 337 struct resource *res; ··· 374 374 return 0; 375 375 } 376 376 377 - static int __devexit cobalt_lcdfb_remove(struct platform_device *dev) 377 + static int cobalt_lcdfb_remove(struct platform_device *dev) 378 378 { 379 379 struct fb_info *info; 380 380 ··· 389 389 390 390 static struct platform_driver cobalt_lcdfb_driver = { 391 391 .probe = cobalt_lcdfb_probe, 392 - .remove = __devexit_p(cobalt_lcdfb_remove), 392 + .remove = cobalt_lcdfb_remove, 393 393 .driver = { 394 394 .name = "cobalt-lcd", 395 395 .owner = THIS_MODULE,
+37 -46
drivers/video/console/sticore.c
··· 238 238 flush_icache_range(start, end); 239 239 } 240 240 241 - static void __devinit sti_rom_copy(unsigned long base, unsigned long count, 242 - void *dest) 241 + static void sti_rom_copy(unsigned long base, unsigned long count, void *dest) 243 242 { 244 243 unsigned long dest_start = (unsigned long) dest; 245 244 ··· 265 266 static char default_sti_path[21] __read_mostly; 266 267 267 268 #ifndef MODULE 268 - static int __devinit sti_setup(char *str) 269 + static int sti_setup(char *str) 269 270 { 270 271 if (str) 271 272 strlcpy (default_sti_path, str, sizeof (default_sti_path)); ··· 284 285 285 286 286 287 287 - static char __devinitdata *font_name[MAX_STI_ROMS] = { "VGA8x16", }; 288 - static int __devinitdata font_index[MAX_STI_ROMS], 289 - font_height[MAX_STI_ROMS], 290 - font_width[MAX_STI_ROMS]; 288 + static char *font_name[MAX_STI_ROMS] = { "VGA8x16", }; 289 + static int font_index[MAX_STI_ROMS], 290 + font_height[MAX_STI_ROMS], 291 + font_width[MAX_STI_ROMS]; 291 292 #ifndef MODULE 292 - static int __devinit sti_font_setup(char *str) 293 + static int sti_font_setup(char *str) 293 294 { 294 295 char *x; 295 296 int i = 0; ··· 342 343 343 344 344 345 345 - static void __devinit 346 - sti_dump_globcfg(struct sti_glob_cfg *glob_cfg, unsigned int sti_mem_request) 346 + static void sti_dump_globcfg(struct sti_glob_cfg *glob_cfg, 347 + unsigned int sti_mem_request) 347 348 { 348 349 struct sti_glob_cfg_ext *cfg; 349 350 ··· 382 383 cfg->sti_mem_addr, sti_mem_request)); 383 384 } 384 385 385 - static void __devinit 386 - sti_dump_outptr(struct sti_struct *sti) 386 + static void sti_dump_outptr(struct sti_struct *sti) 387 387 { 388 388 DPRINTK((KERN_INFO 389 389 "%d bits per pixel\n" ··· 395 397 sti->outptr.attributes)); 396 398 } 397 399 398 - static int __devinit 399 - sti_init_glob_cfg(struct sti_struct *sti, 400 - unsigned long rom_address, unsigned long hpa) 400 + static int sti_init_glob_cfg(struct sti_struct *sti, unsigned long rom_address, 401 + unsigned long hpa) 401 402 { 402 403 struct sti_glob_cfg *glob_cfg; 403 404 struct sti_glob_cfg_ext *glob_cfg_ext; ··· 476 479 } 477 480 478 481 #ifdef CONFIG_FB 479 - static struct sti_cooked_font __devinit 480 - *sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name) 482 + static struct sti_cooked_font * 483 + sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name) 481 484 { 482 485 const struct font_desc *fbfont; 483 486 unsigned int size, bpc; ··· 532 535 return cooked_font; 533 536 } 534 537 #else 535 - static struct sti_cooked_font __devinit 536 - *sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name) 538 + static struct sti_cooked_font * 539 + sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name) 537 540 { 538 541 return NULL; 539 542 } 540 543 #endif 541 544 542 - static struct sti_cooked_font __devinit 543 - *sti_select_font(struct sti_cooked_rom *rom, 544 - int (*search_font_fnc)(struct sti_cooked_rom *, int, int)) 545 + static struct sti_cooked_font *sti_select_font(struct sti_cooked_rom *rom, 546 + int (*search_font_fnc)(struct sti_cooked_rom *, int, int)) 545 547 { 546 548 struct sti_cooked_font *font; 547 549 int i; ··· 565 569 } 566 570 567 571 568 - static void __devinit 569 - sti_dump_rom(struct sti_rom *rom) 572 + static void sti_dump_rom(struct sti_rom *rom) 570 573 { 571 574 printk(KERN_INFO " id %04x-%04x, conforms to spec rev. %d.%02x\n", 572 575 rom->graphics_id[0], ··· 582 587 } 583 588 584 589 585 - static int __devinit 586 - sti_cook_fonts(struct sti_cooked_rom *cooked_rom, 587 - struct sti_rom *raw_rom) 590 + static int sti_cook_fonts(struct sti_cooked_rom *cooked_rom, 591 + struct sti_rom *raw_rom) 588 592 { 589 593 struct sti_rom_font *raw_font, *font_start; 590 594 struct sti_cooked_font *cooked_font; ··· 616 622 } 617 623 618 624 619 - static int __devinit 620 - sti_search_font(struct sti_cooked_rom *rom, int height, int width) 625 + static int sti_search_font(struct sti_cooked_rom *rom, int height, int width) 621 626 { 622 627 struct sti_cooked_font *font; 623 628 int i = 0; ··· 632 639 #define BMODE_RELOCATE(offset) offset = (offset) / 4; 633 640 #define BMODE_LAST_ADDR_OFFS 0x50 634 641 635 - static void * __devinit 636 - sti_bmode_font_raw(struct sti_cooked_font *f) 642 + static void *sti_bmode_font_raw(struct sti_cooked_font *f) 637 643 { 638 644 unsigned char *n, *p, *q; 639 645 int size = f->raw->bytes_per_char*256+sizeof(struct sti_rom_font); ··· 649 657 return n + 3; 650 658 } 651 659 652 - static void __devinit 653 - sti_bmode_rom_copy(unsigned long base, unsigned long count, void *dest) 660 + static void sti_bmode_rom_copy(unsigned long base, unsigned long count, 661 + void *dest) 654 662 { 655 663 unsigned long dest_start = (unsigned long) dest; 656 664 ··· 664 672 sti_flush(dest_start, (unsigned long)dest); 665 673 } 666 674 667 - static struct sti_rom * __devinit 668 - sti_get_bmode_rom (unsigned long address) 675 + static struct sti_rom *sti_get_bmode_rom (unsigned long address) 669 676 { 670 677 struct sti_rom *raw; 671 678 u32 size; ··· 699 708 return raw; 700 709 } 701 710 702 - static struct sti_rom __devinit *sti_get_wmode_rom(unsigned long address) 711 + static struct sti_rom *sti_get_wmode_rom(unsigned long address) 703 712 { 704 713 struct sti_rom *raw; 705 714 unsigned long size; ··· 714 723 return raw; 715 724 } 716 725 717 - static int __devinit sti_read_rom(int wordmode, struct sti_struct *sti, 718 - unsigned long address) 726 + static int sti_read_rom(int wordmode, struct sti_struct *sti, 727 + unsigned long address) 719 728 { 720 729 struct sti_cooked_rom *cooked; 721 730 struct sti_rom *raw = NULL; ··· 797 806 return 0; 798 807 } 799 808 800 - static struct sti_struct * __devinit 801 - sti_try_rom_generic(unsigned long address, unsigned long hpa, struct pci_dev *pd) 809 + static struct sti_struct *sti_try_rom_generic(unsigned long address, 810 + unsigned long hpa, 811 + struct pci_dev *pd) 802 812 { 803 813 struct sti_struct *sti; 804 814 int ok; ··· 913 921 return NULL; 914 922 } 915 923 916 - static void __devinit sticore_check_for_default_sti(struct sti_struct *sti, char *path) 924 + static void sticore_check_for_default_sti(struct sti_struct *sti, char *path) 917 925 { 918 926 if (strcmp (path, default_sti_path) == 0) 919 927 default_sti = sti; ··· 924 932 * in the additional address field addr[1] while on 925 933 * older Systems the PDC stores it in page0->proc_sti 926 934 */ 927 - static int __devinit sticore_pa_init(struct parisc_device *dev) 935 + static int sticore_pa_init(struct parisc_device *dev) 928 936 { 929 937 char pa_path[21]; 930 938 struct sti_struct *sti = NULL; ··· 945 953 } 946 954 947 955 948 - static int __devinit sticore_pci_init(struct pci_dev *pd, 949 - const struct pci_device_id *ent) 956 + static int sticore_pci_init(struct pci_dev *pd, const struct pci_device_id *ent) 950 957 { 951 958 #ifdef CONFIG_PCI 952 959 unsigned long fb_base, rom_base; ··· 992 1001 } 993 1002 994 1003 995 - static void __devexit sticore_pci_remove(struct pci_dev *pd) 1004 + static void sticore_pci_remove(struct pci_dev *pd) 996 1005 { 997 1006 BUG(); 998 1007 } ··· 1034 1043 1035 1044 static int sticore_initialized __read_mostly; 1036 1045 1037 - static void __devinit sti_init_roms(void) 1046 + static void sti_init_roms(void) 1038 1047 { 1039 1048 if (sticore_initialized) 1040 1049 return;
+11 -12
drivers/video/cyber2000fb.c
··· 1230 1230 return retval; 1231 1231 } 1232 1232 1233 - static int __devinit cyber2000fb_setup_ddc_bus(struct cfb_info *cfb) 1233 + static int cyber2000fb_setup_ddc_bus(struct cfb_info *cfb) 1234 1234 { 1235 1235 strlcpy(cfb->ddc_adapter.name, cfb->fb.fix.id, 1236 1236 sizeof(cfb->ddc_adapter.name)); ··· 1305 1305 return ret; 1306 1306 } 1307 1307 1308 - static int __devinit cyber2000fb_i2c_register(struct cfb_info *cfb) 1308 + static int cyber2000fb_i2c_register(struct cfb_info *cfb) 1309 1309 { 1310 1310 strlcpy(cfb->i2c_adapter.name, cfb->fb.fix.id, 1311 1311 sizeof(cfb->i2c_adapter.name)); ··· 1336 1336 * These parameters give 1337 1337 * 640x480, hsync 31.5kHz, vsync 60Hz 1338 1338 */ 1339 - static struct fb_videomode __devinitdata cyber2000fb_default_mode = { 1339 + static struct fb_videomode cyber2000fb_default_mode = { 1340 1340 .refresh = 60, 1341 1341 .xres = 640, 1342 1342 .yres = 480, ··· 1404 1404 } 1405 1405 } 1406 1406 1407 - static struct cfb_info __devinit *cyberpro_alloc_fb_info(unsigned int id, 1408 - char *name) 1407 + static struct cfb_info *cyberpro_alloc_fb_info(unsigned int id, char *name) 1409 1408 { 1410 1409 struct cfb_info *cfb; 1411 1410 ··· 1523 1524 * - memory mapped access to the registers 1524 1525 * - initialised mem_ctl1 and mem_ctl2 appropriately. 1525 1526 */ 1526 - static int __devinit cyberpro_common_probe(struct cfb_info *cfb) 1527 + static int cyberpro_common_probe(struct cfb_info *cfb) 1527 1528 { 1528 1529 u_long smem_size; 1529 1530 u_int h_sync, v_sync; ··· 1614 1615 return err; 1615 1616 } 1616 1617 1617 - static void __devexit cyberpro_common_remove(struct cfb_info *cfb) 1618 + static void cyberpro_common_remove(struct cfb_info *cfb) 1618 1619 { 1619 1620 unregister_framebuffer(&cfb->fb); 1620 1621 #ifdef CONFIG_FB_CYBER2000_DDC ··· 1645 1646 1646 1647 #include <mach/framebuffer.h> 1647 1648 1648 - static int __devinit cyberpro_vl_probe(void) 1649 + static int cyberpro_vl_probe(void) 1649 1650 { 1650 1651 struct cfb_info *cfb; 1651 1652 int err = -ENOMEM; ··· 1779 1780 return 0; 1780 1781 } 1781 1782 1782 - static int __devinit 1783 - cyberpro_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 1783 + static int cyberpro_pci_probe(struct pci_dev *dev, 1784 + const struct pci_device_id *id) 1784 1785 { 1785 1786 struct cfb_info *cfb; 1786 1787 char name[16]; ··· 1862 1863 return err; 1863 1864 } 1864 1865 1865 - static void __devexit cyberpro_pci_remove(struct pci_dev *dev) 1866 + static void cyberpro_pci_remove(struct pci_dev *dev) 1866 1867 { 1867 1868 struct cfb_info *cfb = pci_get_drvdata(dev); 1868 1869 ··· 1922 1923 static struct pci_driver cyberpro_driver = { 1923 1924 .name = "CyberPro", 1924 1925 .probe = cyberpro_pci_probe, 1925 - .remove = __devexit_p(cyberpro_pci_remove), 1926 + .remove = cyberpro_pci_remove, 1926 1927 .suspend = cyberpro_pci_suspend, 1927 1928 .resume = cyberpro_pci_resume, 1928 1929 .id_table = cyberpro_pci_table
+5 -5
drivers/video/da8xx-fb.c
··· 185 185 }; 186 186 187 187 /* Variable Screen Information */ 188 - static struct fb_var_screeninfo da8xx_fb_var __devinitdata = { 188 + static struct fb_var_screeninfo da8xx_fb_var = { 189 189 .xoffset = 0, 190 190 .yoffset = 0, 191 191 .transp = {0, 0, 0}, ··· 202 202 .vmode = FB_VMODE_NONINTERLACED 203 203 }; 204 204 205 - static struct fb_fix_screeninfo da8xx_fb_fix __devinitdata = { 205 + static struct fb_fix_screeninfo da8xx_fb_fix = { 206 206 .id = "DA8xx FB Drv", 207 207 .type = FB_TYPE_PACKED_PIXELS, 208 208 .type_aux = 0, ··· 993 993 } 994 994 #endif 995 995 996 - static int __devexit fb_remove(struct platform_device *dev) 996 + static int fb_remove(struct platform_device *dev) 997 997 { 998 998 struct fb_info *info = dev_get_drvdata(&dev->dev); 999 999 ··· 1211 1211 return pix_clk_period_picosec; 1212 1212 } 1213 1213 1214 - static int __devinit fb_probe(struct platform_device *device) 1214 + static int fb_probe(struct platform_device *device) 1215 1215 { 1216 1216 struct da8xx_lcdc_platform_data *fb_pdata = 1217 1217 device->dev.platform_data; ··· 1580 1580 1581 1581 static struct platform_driver da8xx_fb_driver = { 1582 1582 .probe = fb_probe, 1583 - .remove = __devexit_p(fb_remove), 1583 + .remove = fb_remove, 1584 1584 .suspend = fb_suspend, 1585 1585 .resume = fb_resume, 1586 1586 .driver = {
+3 -3
drivers/video/dnfb.c
··· 115 115 .fb_imageblit = cfb_imageblit, 116 116 }; 117 117 118 - struct fb_var_screeninfo dnfb_var __devinitdata = { 118 + struct fb_var_screeninfo dnfb_var = { 119 119 .xres = 1280, 120 120 .yres = 1024, 121 121 .xres_virtual = 2048, ··· 126 126 .vmode = FB_VMODE_NONINTERLACED, 127 127 }; 128 128 129 - static struct fb_fix_screeninfo dnfb_fix __devinitdata = { 129 + static struct fb_fix_screeninfo dnfb_fix = { 130 130 .id = "Apollo Mono", 131 131 .smem_start = (FRAME_BUFFER_START + IO_BASE), 132 132 .smem_len = FRAME_BUFFER_LEN, ··· 224 224 * Initialization 225 225 */ 226 226 227 - static int __devinit dnfb_probe(struct platform_device *dev) 227 + static int dnfb_probe(struct platform_device *dev) 228 228 { 229 229 struct fb_info *info; 230 230 int err = 0;
+2 -2
drivers/video/efifb.c
··· 20 20 21 21 static struct pci_dev *default_vga; 22 22 23 - static struct fb_var_screeninfo efifb_defined __devinitdata = { 23 + static struct fb_var_screeninfo efifb_defined = { 24 24 .activate = FB_ACTIVATE_NOW, 25 25 .height = -1, 26 26 .width = -1, ··· 31 31 .vmode = FB_VMODE_NONINTERLACED, 32 32 }; 33 33 34 - static struct fb_fix_screeninfo efifb_fix __devinitdata = { 34 + static struct fb_fix_screeninfo efifb_fix = { 35 35 .id = "EFI VGA", 36 36 .type = FB_TYPE_PACKED_PIXELS, 37 37 .accel = FB_ACCEL_NONE,
+4 -4
drivers/video/ep93xx-fb.c
··· 484 484 info->screen_base, info->fix.smem_start); 485 485 } 486 486 487 - static int __devinit ep93xxfb_probe(struct platform_device *pdev) 487 + static int ep93xxfb_probe(struct platform_device *pdev) 488 488 { 489 489 struct ep93xxfb_mach_info *mach_info = pdev->dev.platform_data; 490 490 struct fb_info *info; ··· 599 599 return err; 600 600 } 601 601 602 - static int __devexit ep93xxfb_remove(struct platform_device *pdev) 602 + static int ep93xxfb_remove(struct platform_device *pdev) 603 603 { 604 604 struct fb_info *info = platform_get_drvdata(pdev); 605 605 struct ep93xx_fbi *fbi = info->par; ··· 620 620 621 621 static struct platform_driver ep93xxfb_driver = { 622 622 .probe = ep93xxfb_probe, 623 - .remove = __devexit_p(ep93xxfb_remove), 623 + .remove = ep93xxfb_remove, 624 624 .driver = { 625 625 .name = "ep93xx-fb", 626 626 .owner = THIS_MODULE, 627 627 }, 628 628 }; 629 629 630 - static int __devinit ep93xxfb_init(void) 630 + static int ep93xxfb_init(void) 631 631 { 632 632 return platform_driver_register(&ep93xxfb_driver); 633 633 }
+3 -3
drivers/video/exynos/exynos_dp_core.c
··· 1033 1033 } 1034 1034 #endif /* CONFIG_OF */ 1035 1035 1036 - static int __devinit exynos_dp_probe(struct platform_device *pdev) 1036 + static int exynos_dp_probe(struct platform_device *pdev) 1037 1037 { 1038 1038 struct resource *res; 1039 1039 struct exynos_dp_device *dp; ··· 1114 1114 return 0; 1115 1115 } 1116 1116 1117 - static int __devexit exynos_dp_remove(struct platform_device *pdev) 1117 + static int exynos_dp_remove(struct platform_device *pdev) 1118 1118 { 1119 1119 struct exynos_dp_platdata *pdata = pdev->dev.platform_data; 1120 1120 struct exynos_dp_device *dp = platform_get_drvdata(pdev); ··· 1195 1195 1196 1196 static struct platform_driver exynos_dp_driver = { 1197 1197 .probe = exynos_dp_probe, 1198 - .remove = __devexit_p(exynos_dp_remove), 1198 + .remove = exynos_dp_remove, 1199 1199 .driver = { 1200 1200 .name = "exynos-dp", 1201 1201 .owner = THIS_MODULE,
+2 -2
drivers/video/exynos/exynos_mipi_dsi.c
··· 490 490 return ret; 491 491 } 492 492 493 - static int __devexit exynos_mipi_dsi_remove(struct platform_device *pdev) 493 + static int exynos_mipi_dsi_remove(struct platform_device *pdev) 494 494 { 495 495 struct mipi_dsim_device *dsim = platform_get_drvdata(pdev); 496 496 struct mipi_dsim_ddi *dsim_ddi, *next; ··· 595 595 596 596 static struct platform_driver exynos_mipi_dsi_driver = { 597 597 .probe = exynos_mipi_dsi_probe, 598 - .remove = __devexit_p(exynos_mipi_dsi_remove), 598 + .remove = exynos_mipi_dsi_remove, 599 599 .driver = { 600 600 .name = "exynos-mipi-dsim", 601 601 .owner = THIS_MODULE,
+3 -3
drivers/video/ffb.c
··· 893 893 info->fix.accel = FB_ACCEL_SUN_CREATOR; 894 894 } 895 895 896 - static int __devinit ffb_probe(struct platform_device *op) 896 + static int ffb_probe(struct platform_device *op) 897 897 { 898 898 struct device_node *dp = op->dev.of_node; 899 899 struct ffb_fbc __iomem *fbc; ··· 1022 1022 return err; 1023 1023 } 1024 1024 1025 - static int __devexit ffb_remove(struct platform_device *op) 1025 + static int ffb_remove(struct platform_device *op) 1026 1026 { 1027 1027 struct fb_info *info = dev_get_drvdata(&op->dev); 1028 1028 struct ffb_par *par = info->par; ··· 1058 1058 .of_match_table = ffb_match, 1059 1059 }, 1060 1060 .probe = ffb_probe, 1061 - .remove = __devexit_p(ffb_remove), 1061 + .remove = ffb_remove, 1062 1062 }; 1063 1063 1064 1064 static int __init ffb_init(void)
+6 -8
drivers/video/fm2fb.c
··· 127 127 128 128 static volatile unsigned char *fm2fb_reg; 129 129 130 - static struct fb_fix_screeninfo fb_fix __devinitdata = { 130 + static struct fb_fix_screeninfo fb_fix = { 131 131 .smem_len = FRAMEMASTER_REG, 132 132 .type = FB_TYPE_PACKED_PIXELS, 133 133 .visual = FB_VISUAL_TRUECOLOR, ··· 136 136 .accel = FB_ACCEL_NONE, 137 137 }; 138 138 139 - static int fm2fb_mode __devinitdata = -1; 139 + static int fm2fb_mode = -1; 140 140 141 141 #define FM2FB_MODE_PAL 0 142 142 #define FM2FB_MODE_NTSC 1 143 143 144 - static struct fb_var_screeninfo fb_var_modes[] __devinitdata = { 144 + static struct fb_var_screeninfo fb_var_modes[] = { 145 145 { 146 146 /* 768 x 576, 32 bpp (PAL) */ 147 147 768, 576, 768, 576, 0, 0, 32, 0, ··· 211 211 * Initialisation 212 212 */ 213 213 214 - static int __devinit fm2fb_probe(struct zorro_dev *z, 215 - const struct zorro_device_id *id); 214 + static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id); 216 215 217 - static struct zorro_device_id fm2fb_devices[] __devinitdata = { 216 + static struct zorro_device_id fm2fb_devices[] = { 218 217 { ZORRO_PROD_BSC_FRAMEMASTER_II }, 219 218 { ZORRO_PROD_HELFRICH_RAINBOW_II }, 220 219 { 0 } ··· 226 227 .probe = fm2fb_probe, 227 228 }; 228 229 229 - static int __devinit fm2fb_probe(struct zorro_dev *z, 230 - const struct zorro_device_id *id) 230 + static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id) 231 231 { 232 232 struct fb_info *info; 233 233 unsigned long *ptr;
+3 -3
drivers/video/fsl-diu-fb.c
··· 55 55 * order if increasing resolution and frequency. The 320x240-60 mode is 56 56 * the initial AOI for the second and third planes. 57 57 */ 58 - static struct fb_videomode __devinitdata fsl_diu_mode_db[] = { 58 + static struct fb_videomode fsl_diu_mode_db[] = { 59 59 { 60 60 .refresh = 60, 61 61 .xres = 1024, ··· 1307 1307 .fb_release = fsl_diu_release, 1308 1308 }; 1309 1309 1310 - static int __devinit install_fb(struct fb_info *info) 1310 + static int install_fb(struct fb_info *info) 1311 1311 { 1312 1312 int rc; 1313 1313 struct mfb_info *mfbi = info->par; ··· 1518 1518 return 0; 1519 1519 } 1520 1520 1521 - static int __devinit fsl_diu_probe(struct platform_device *pdev) 1521 + static int fsl_diu_probe(struct platform_device *pdev) 1522 1522 { 1523 1523 struct device_node *np = pdev->dev.of_node; 1524 1524 struct mfb_info *mfbi;
+12 -12
drivers/video/gbefb.c
··· 91 91 static uint32_t gbe_cmap[256]; 92 92 static int gbe_turned_on; /* 0 turned off, 1 turned on */ 93 93 94 - static char *mode_option __devinitdata = NULL; 94 + static char *mode_option = NULL; 95 95 96 96 /* default CRT mode */ 97 - static struct fb_var_screeninfo default_var_CRT __devinitdata = { 97 + static struct fb_var_screeninfo default_var_CRT = { 98 98 /* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */ 99 99 .xres = 640, 100 100 .yres = 480, ··· 125 125 }; 126 126 127 127 /* default LCD mode */ 128 - static struct fb_var_screeninfo default_var_LCD __devinitdata = { 128 + static struct fb_var_screeninfo default_var_LCD = { 129 129 /* 1600x1024, 8 bpp */ 130 130 .xres = 1600, 131 131 .yres = 1024, ··· 157 157 158 158 /* default modedb mode */ 159 159 /* 640x480, 60 Hz, Non-Interlaced (25.172 MHz dotclock) */ 160 - static struct fb_videomode default_mode_CRT __devinitdata = { 160 + static struct fb_videomode default_mode_CRT = { 161 161 .refresh = 60, 162 162 .xres = 640, 163 163 .yres = 480, ··· 172 172 .vmode = FB_VMODE_NONINTERLACED, 173 173 }; 174 174 /* 1600x1024 SGI flatpanel 1600sw */ 175 - static struct fb_videomode default_mode_LCD __devinitdata = { 175 + static struct fb_videomode default_mode_LCD = { 176 176 /* 1600x1024, 8 bpp */ 177 177 .xres = 1600, 178 178 .yres = 1024, ··· 186 186 .vmode = FB_VMODE_NONINTERLACED, 187 187 }; 188 188 189 - static struct fb_videomode *default_mode __devinitdata = &default_mode_CRT; 190 - static struct fb_var_screeninfo *default_var __devinitdata = &default_var_CRT; 189 + static struct fb_videomode *default_mode = &default_mode_CRT; 190 + static struct fb_var_screeninfo *default_var = &default_var_CRT; 191 191 192 192 static int flat_panel_enabled = 0; 193 193 ··· 1082 1082 1083 1083 static DEVICE_ATTR(revision, S_IRUGO, gbefb_show_rev, NULL); 1084 1084 1085 - static void __devexit gbefb_remove_sysfs(struct device *dev) 1085 + static void gbefb_remove_sysfs(struct device *dev) 1086 1086 { 1087 1087 device_remove_file(dev, &dev_attr_size); 1088 1088 device_remove_file(dev, &dev_attr_revision); ··· 1098 1098 * Initialization 1099 1099 */ 1100 1100 1101 - static int __devinit gbefb_setup(char *options) 1101 + static int gbefb_setup(char *options) 1102 1102 { 1103 1103 char *this_opt; 1104 1104 ··· 1129 1129 return 0; 1130 1130 } 1131 1131 1132 - static int __devinit gbefb_probe(struct platform_device *p_dev) 1132 + static int gbefb_probe(struct platform_device *p_dev) 1133 1133 { 1134 1134 int i, ret = 0; 1135 1135 struct fb_info *info; ··· 1254 1254 return ret; 1255 1255 } 1256 1256 1257 - static int __devexit gbefb_remove(struct platform_device* p_dev) 1257 + static int gbefb_remove(struct platform_device* p_dev) 1258 1258 { 1259 1259 struct fb_info *info = platform_get_drvdata(p_dev); 1260 1260 ··· 1273 1273 1274 1274 static struct platform_driver gbefb_driver = { 1275 1275 .probe = gbefb_probe, 1276 - .remove = __devexit_p(gbefb_remove), 1276 + .remove = gbefb_remove, 1277 1277 .driver = { 1278 1278 .name = "gbefb", 1279 1279 },
+7 -7
drivers/video/geode/gx1fb_core.c
··· 29 29 static char panel_option[32] = ""; 30 30 31 31 /* Modes relevant to the GX1 (taken from modedb.c) */ 32 - static const struct fb_videomode __devinitconst gx1_modedb[] = { 32 + static const struct fb_videomode gx1_modedb[] = { 33 33 /* 640x480-60 VESA */ 34 34 { NULL, 60, 640, 480, 39682, 48, 16, 33, 10, 96, 2, 35 35 0, FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA }, ··· 195 195 return par->vid_ops->blank_display(info, blank_mode); 196 196 } 197 197 198 - static int __devinit gx1fb_map_video_memory(struct fb_info *info, struct pci_dev *dev) 198 + static int gx1fb_map_video_memory(struct fb_info *info, struct pci_dev *dev) 199 199 { 200 200 struct geodefb_par *par = info->par; 201 201 unsigned gx_base; ··· 268 268 .fb_imageblit = cfb_imageblit, 269 269 }; 270 270 271 - static struct fb_info * __devinit gx1fb_init_fbinfo(struct device *dev) 271 + static struct fb_info *gx1fb_init_fbinfo(struct device *dev) 272 272 { 273 273 struct geodefb_par *par; 274 274 struct fb_info *info; ··· 318 318 return info; 319 319 } 320 320 321 - static int __devinit gx1fb_probe(struct pci_dev *pdev, const struct pci_device_id *id) 321 + static int gx1fb_probe(struct pci_dev *pdev, const struct pci_device_id *id) 322 322 { 323 323 struct geodefb_par *par; 324 324 struct fb_info *info; ··· 382 382 return ret; 383 383 } 384 384 385 - static void __devexit gx1fb_remove(struct pci_dev *pdev) 385 + static void gx1fb_remove(struct pci_dev *pdev) 386 386 { 387 387 struct fb_info *info = pci_get_drvdata(pdev); 388 388 struct geodefb_par *par = info->par; ··· 441 441 .name = "gx1fb", 442 442 .id_table = gx1fb_id_table, 443 443 .probe = gx1fb_probe, 444 - .remove = __devexit_p(gx1fb_remove), 444 + .remove = gx1fb_remove, 445 445 }; 446 446 447 447 static int __init gx1fb_init(void) ··· 456 456 return pci_register_driver(&gx1fb_driver); 457 457 } 458 458 459 - static void __devexit gx1fb_cleanup(void) 459 + static void gx1fb_cleanup(void) 460 460 { 461 461 pci_unregister_driver(&gx1fb_driver); 462 462 }
+8 -12
drivers/video/geode/gxfb_core.c
··· 40 40 static int vt_switch; 41 41 42 42 /* Modes relevant to the GX (taken from modedb.c) */ 43 - static struct fb_videomode gx_modedb[] __devinitdata = { 43 + static struct fb_videomode gx_modedb[] = { 44 44 /* 640x480-60 VESA */ 45 45 { NULL, 60, 640, 480, 39682, 48, 16, 33, 10, 96, 2, 46 46 0, FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA }, ··· 110 110 #ifdef CONFIG_OLPC 111 111 #include <asm/olpc.h> 112 112 113 - static struct fb_videomode gx_dcon_modedb[] __devinitdata = { 113 + static struct fb_videomode gx_dcon_modedb[] = { 114 114 /* The only mode the DCON has is 1200x900 */ 115 115 { NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3, 116 116 FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 117 117 FB_VMODE_NONINTERLACED, 0 } 118 118 }; 119 119 120 - static void __devinit get_modedb(struct fb_videomode **modedb, 121 - unsigned int *size) 120 + static void get_modedb(struct fb_videomode **modedb, unsigned int *size) 122 121 { 123 122 if (olpc_has_dcon()) { 124 123 *modedb = (struct fb_videomode *) gx_dcon_modedb; ··· 129 130 } 130 131 131 132 #else 132 - static void __devinit get_modedb(struct fb_videomode **modedb, 133 - unsigned int *size) 133 + static void get_modedb(struct fb_videomode **modedb, unsigned int *size) 134 134 { 135 135 *modedb = (struct fb_videomode *) gx_modedb; 136 136 *size = ARRAY_SIZE(gx_modedb); ··· 226 228 return gx_blank_display(info, blank_mode); 227 229 } 228 230 229 - static int __devinit gxfb_map_video_memory(struct fb_info *info, 230 - struct pci_dev *dev) 231 + static int gxfb_map_video_memory(struct fb_info *info, struct pci_dev *dev) 231 232 { 232 233 struct gxfb_par *par = info->par; 233 234 int ret; ··· 290 293 .fb_imageblit = cfb_imageblit, 291 294 }; 292 295 293 - static struct fb_info *__devinit gxfb_init_fbinfo(struct device *dev) 296 + static struct fb_info *gxfb_init_fbinfo(struct device *dev) 294 297 { 295 298 struct gxfb_par *par; 296 299 struct fb_info *info; ··· 371 374 } 372 375 #endif 373 376 374 - static int __devinit gxfb_probe(struct pci_dev *pdev, 375 - const struct pci_device_id *id) 377 + static int gxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id) 376 378 { 377 379 struct gxfb_par *par; 378 380 struct fb_info *info; ··· 451 455 return ret; 452 456 } 453 457 454 - static void __devexit gxfb_remove(struct pci_dev *pdev) 458 + static void gxfb_remove(struct pci_dev *pdev) 455 459 { 456 460 struct fb_info *info = pci_get_drvdata(pdev); 457 461 struct gxfb_par *par = info->par;
+8 -12
drivers/video/geode/lxfb_core.c
··· 35 35 * we try to make it something sane - 640x480-60 is sane 36 36 */ 37 37 38 - static struct fb_videomode geode_modedb[] __devinitdata = { 38 + static struct fb_videomode geode_modedb[] = { 39 39 /* 640x480-60 */ 40 40 { NULL, 60, 640, 480, 39682, 48, 8, 25, 2, 88, 2, 41 41 FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, ··· 219 219 #ifdef CONFIG_OLPC 220 220 #include <asm/olpc.h> 221 221 222 - static struct fb_videomode olpc_dcon_modedb[] __devinitdata = { 222 + static struct fb_videomode olpc_dcon_modedb[] = { 223 223 /* The only mode the DCON has is 1200x900 */ 224 224 { NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3, 225 225 FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 226 226 FB_VMODE_NONINTERLACED, 0 } 227 227 }; 228 228 229 - static void __devinit get_modedb(struct fb_videomode **modedb, 230 - unsigned int *size) 229 + static void get_modedb(struct fb_videomode **modedb, unsigned int *size) 231 230 { 232 231 if (olpc_has_dcon()) { 233 232 *modedb = (struct fb_videomode *) olpc_dcon_modedb; ··· 238 239 } 239 240 240 241 #else 241 - static void __devinit get_modedb(struct fb_videomode **modedb, 242 - unsigned int *size) 242 + static void get_modedb(struct fb_videomode **modedb, unsigned int *size) 243 243 { 244 244 *modedb = (struct fb_videomode *) geode_modedb; 245 245 *size = ARRAY_SIZE(geode_modedb); ··· 334 336 } 335 337 336 338 337 - static int __devinit lxfb_map_video_memory(struct fb_info *info, 338 - struct pci_dev *dev) 339 + static int lxfb_map_video_memory(struct fb_info *info, struct pci_dev *dev) 339 340 { 340 341 struct lxfb_par *par = info->par; 341 342 int ret; ··· 411 414 .fb_imageblit = cfb_imageblit, 412 415 }; 413 416 414 - static struct fb_info * __devinit lxfb_init_fbinfo(struct device *dev) 417 + static struct fb_info *lxfb_init_fbinfo(struct device *dev) 415 418 { 416 419 struct lxfb_par *par; 417 420 struct fb_info *info; ··· 495 498 #define lxfb_resume NULL 496 499 #endif 497 500 498 - static int __devinit lxfb_probe(struct pci_dev *pdev, 499 - const struct pci_device_id *id) 501 + static int lxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id) 500 502 { 501 503 struct lxfb_par *par; 502 504 struct fb_info *info; ··· 586 590 return ret; 587 591 } 588 592 589 - static void __devexit lxfb_remove(struct pci_dev *pdev) 593 + static void lxfb_remove(struct pci_dev *pdev) 590 594 { 591 595 struct fb_info *info = pci_get_drvdata(pdev); 592 596 struct lxfb_par *par = info->par;
+6 -6
drivers/video/grvga.c
··· 70 70 } 71 71 }; 72 72 73 - static struct fb_fix_screeninfo grvga_fix __devinitdata = { 73 + static struct fb_fix_screeninfo grvga_fix = { 74 74 .id = "AG SVGACTRL", 75 75 .type = FB_TYPE_PACKED_PIXELS, 76 76 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 267 267 .fb_imageblit = cfb_imageblit 268 268 }; 269 269 270 - static int __devinit grvga_parse_custom(char *options, 271 - struct fb_var_screeninfo *screendata) 270 + static int grvga_parse_custom(char *options, 271 + struct fb_var_screeninfo *screendata) 272 272 { 273 273 char *this_opt; 274 274 int count = 0; ··· 329 329 return 0; 330 330 } 331 331 332 - static int __devinit grvga_probe(struct platform_device *dev) 332 + static int grvga_probe(struct platform_device *dev) 333 333 { 334 334 struct fb_info *info; 335 335 int retval = -ENOMEM; ··· 512 512 return retval; 513 513 } 514 514 515 - static int __devexit grvga_remove(struct platform_device *device) 515 + static int grvga_remove(struct platform_device *device) 516 516 { 517 517 struct fb_info *info = dev_get_drvdata(&device->dev); 518 518 struct grvga_par *par = info->par; ··· 554 554 .of_match_table = svgactrl_of_match, 555 555 }, 556 556 .probe = grvga_probe, 557 - .remove = __devexit_p(grvga_remove), 557 + .remove = grvga_remove, 558 558 }; 559 559 560 560
+6 -7
drivers/video/gxt4500.c
··· 159 159 static char *mode_option; 160 160 161 161 /* default mode: 1280x1024 @ 60 Hz, 8 bpp */ 162 - static const struct fb_videomode defaultmode __devinitconst = { 162 + static const struct fb_videomode defaultmode = { 163 163 .refresh = 60, 164 164 .xres = 1280, 165 165 .yres = 1024, ··· 588 588 return 0; 589 589 } 590 590 591 - static const struct fb_fix_screeninfo gxt4500_fix __devinitconst = { 591 + static const struct fb_fix_screeninfo gxt4500_fix = { 592 592 .id = "IBM GXT4500P", 593 593 .type = FB_TYPE_PACKED_PIXELS, 594 594 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 610 610 }; 611 611 612 612 /* PCI functions */ 613 - static int __devinit gxt4500_probe(struct pci_dev *pdev, 614 - const struct pci_device_id *ent) 613 + static int gxt4500_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 615 614 { 616 615 int err; 617 616 unsigned long reg_phys, fb_phys; ··· 719 720 return -ENODEV; 720 721 } 721 722 722 - static void __devexit gxt4500_remove(struct pci_dev *pdev) 723 + static void gxt4500_remove(struct pci_dev *pdev) 723 724 { 724 725 struct fb_info *info = pci_get_drvdata(pdev); 725 726 struct gxt4500_par *par; ··· 757 758 .name = "gxt4500", 758 759 .id_table = gxt4500_pci_tbl, 759 760 .probe = gxt4500_probe, 760 - .remove = __devexit_p(gxt4500_remove), 761 + .remove = gxt4500_remove, 761 762 }; 762 763 763 - static int __devinit gxt4500_init(void) 764 + static int gxt4500_init(void) 764 765 { 765 766 #ifndef MODULE 766 767 if (fb_get_options("gxt4500", &mode_option))
+5 -5
drivers/video/hecubafb.c
··· 47 47 #define DPY_W 600 48 48 #define DPY_H 800 49 49 50 - static struct fb_fix_screeninfo hecubafb_fix __devinitdata = { 50 + static struct fb_fix_screeninfo hecubafb_fix = { 51 51 .id = "hecubafb", 52 52 .type = FB_TYPE_PACKED_PIXELS, 53 53 .visual = FB_VISUAL_MONO01, ··· 58 58 .accel = FB_ACCEL_NONE, 59 59 }; 60 60 61 - static struct fb_var_screeninfo hecubafb_var __devinitdata = { 61 + static struct fb_var_screeninfo hecubafb_var = { 62 62 .xres = DPY_W, 63 63 .yres = DPY_H, 64 64 .xres_virtual = DPY_W, ··· 211 211 .deferred_io = hecubafb_dpy_deferred_io, 212 212 }; 213 213 214 - static int __devinit hecubafb_probe(struct platform_device *dev) 214 + static int hecubafb_probe(struct platform_device *dev) 215 215 { 216 216 struct fb_info *info; 217 217 struct hecuba_board *board; ··· 280 280 return retval; 281 281 } 282 282 283 - static int __devexit hecubafb_remove(struct platform_device *dev) 283 + static int hecubafb_remove(struct platform_device *dev) 284 284 { 285 285 struct fb_info *info = platform_get_drvdata(dev); 286 286 ··· 299 299 300 300 static struct platform_driver hecubafb_driver = { 301 301 .probe = hecubafb_probe, 302 - .remove = __devexit_p(hecubafb_remove), 302 + .remove = hecubafb_remove, 303 303 .driver = { 304 304 .owner = THIS_MODULE, 305 305 .name = "hecubafb",
+6 -6
drivers/video/hgafb.c
··· 106 106 107 107 /* Framebuffer driver structures */ 108 108 109 - static struct fb_var_screeninfo hga_default_var __devinitdata = { 109 + static struct fb_var_screeninfo hga_default_var = { 110 110 .xres = 720, 111 111 .yres = 348, 112 112 .xres_virtual = 720, ··· 120 120 .width = -1, 121 121 }; 122 122 123 - static struct fb_fix_screeninfo hga_fix __devinitdata = { 123 + static struct fb_fix_screeninfo hga_fix = { 124 124 .id = "HGA", 125 125 .type = FB_TYPE_PACKED_PIXELS, /* (not sure) */ 126 126 .visual = FB_VISUAL_MONO10, ··· 276 276 spin_unlock_irqrestore(&hga_reg_lock, flags); 277 277 } 278 278 279 - static int __devinit hga_card_detect(void) 279 + static int hga_card_detect(void) 280 280 { 281 281 int count = 0; 282 282 void __iomem *p, *q; ··· 546 546 * Initialization 547 547 */ 548 548 549 - static int __devinit hgafb_probe(struct platform_device *pdev) 549 + static int hgafb_probe(struct platform_device *pdev) 550 550 { 551 551 struct fb_info *info; 552 552 ··· 592 592 return 0; 593 593 } 594 594 595 - static int __devexit hgafb_remove(struct platform_device *pdev) 595 + static int hgafb_remove(struct platform_device *pdev) 596 596 { 597 597 struct fb_info *info = platform_get_drvdata(pdev); 598 598 ··· 617 617 618 618 static struct platform_driver hgafb_driver = { 619 619 .probe = hgafb_probe, 620 - .remove = __devexit_p(hgafb_remove), 620 + .remove = hgafb_remove, 621 621 .driver = { 622 622 .name = "hgafb", 623 623 },
+5 -5
drivers/video/hitfb.c
··· 30 30 31 31 #define WIDTH 640 32 32 33 - static struct fb_var_screeninfo hitfb_var __devinitdata = { 33 + static struct fb_var_screeninfo hitfb_var = { 34 34 .activate = FB_ACTIVATE_NOW, 35 35 .height = -1, 36 36 .width = -1, 37 37 .vmode = FB_VMODE_NONINTERLACED, 38 38 }; 39 39 40 - static struct fb_fix_screeninfo hitfb_fix __devinitdata = { 40 + static struct fb_fix_screeninfo hitfb_fix = { 41 41 .id = "Hitachi HD64461", 42 42 .type = FB_TYPE_PACKED_PIXELS, 43 43 .accel = FB_ACCEL_NONE, ··· 324 324 .fb_imageblit = cfb_imageblit, 325 325 }; 326 326 327 - static int __devinit hitfb_probe(struct platform_device *dev) 327 + static int hitfb_probe(struct platform_device *dev) 328 328 { 329 329 unsigned short lcdclor, ldr3, ldvndr; 330 330 struct fb_info *info; ··· 417 417 return ret; 418 418 } 419 419 420 - static int __devexit hitfb_remove(struct platform_device *dev) 420 + static int hitfb_remove(struct platform_device *dev) 421 421 { 422 422 struct fb_info *info = platform_get_drvdata(dev); 423 423 ··· 462 462 463 463 static struct platform_driver hitfb_driver = { 464 464 .probe = hitfb_probe, 465 - .remove = __devexit_p(hitfb_remove), 465 + .remove = hitfb_remove, 466 466 .driver = { 467 467 .name = "hitfb", 468 468 .owner = THIS_MODULE,
+4 -5
drivers/video/hpfb.c
··· 206 206 #define HPFB_FBOMSB 0x5d /* Frame buffer offset */ 207 207 #define HPFB_FBOLSB 0x5f 208 208 209 - static int __devinit hpfb_init_one(unsigned long phys_base, 210 - unsigned long virt_base) 209 + static int hpfb_init_one(unsigned long phys_base, unsigned long virt_base) 211 210 { 212 211 unsigned long fboff, fb_width, fb_height, fb_start; 213 212 int ret; ··· 326 327 /* 327 328 * Initialise the framebuffer 328 329 */ 329 - static int __devinit hpfb_dio_probe(struct dio_dev * d, const struct dio_device_id * ent) 330 + static int hpfb_dio_probe(struct dio_dev *d, const struct dio_device_id *ent) 330 331 { 331 332 unsigned long paddr, vaddr; 332 333 ··· 349 350 return 0; 350 351 } 351 352 352 - static void __devexit hpfb_remove_one(struct dio_dev *d) 353 + static void hpfb_remove_one(struct dio_dev *d) 353 354 { 354 355 unregister_framebuffer(&fb_info); 355 356 if (d->scode >= DIOII_SCBASE) ··· 372 373 .name = "hpfb", 373 374 .id_table = hpfb_dio_tbl, 374 375 .probe = hpfb_dio_probe, 375 - .remove = __devexit_p(hpfb_remove_one), 376 + .remove = hpfb_remove_one, 376 377 }; 377 378 378 379 int __init hpfb_init(void)
+7 -8
drivers/video/i740fb.c
··· 33 33 34 34 #include "i740_reg.h" 35 35 36 - static char *mode_option __devinitdata; 36 + static char *mode_option; 37 37 38 38 #ifdef CONFIG_MTRR 39 - static int mtrr __devinitdata = 1; 39 + static int mtrr = 1; 40 40 #endif 41 41 42 42 struct i740fb_par { ··· 91 91 #define DACSPEED24_SD 128 92 92 #define DACSPEED32 86 93 93 94 - static struct fb_fix_screeninfo i740fb_fix __devinitdata = { 94 + static struct fb_fix_screeninfo i740fb_fix = { 95 95 .id = "i740fb", 96 96 .type = FB_TYPE_PACKED_PIXELS, 97 97 .visual = FB_VISUAL_TRUECOLOR, ··· 163 163 return !!(i740inreg(par, XRX, REG_DDC_STATE) & DDC_SDA); 164 164 } 165 165 166 - static int __devinit i740fb_setup_ddc_bus(struct fb_info *info) 166 + static int i740fb_setup_ddc_bus(struct fb_info *info) 167 167 { 168 168 struct i740fb_par *par = info->par; 169 169 ··· 1007 1007 1008 1008 /* ------------------------------------------------------------------------- */ 1009 1009 1010 - static int __devinit i740fb_probe(struct pci_dev *dev, 1011 - const struct pci_device_id *ent) 1010 + static int i740fb_probe(struct pci_dev *dev, const struct pci_device_id *ent) 1012 1011 { 1013 1012 struct fb_info *info; 1014 1013 struct i740fb_par *par; ··· 1173 1174 return ret; 1174 1175 } 1175 1176 1176 - static void __devexit i740fb_remove(struct pci_dev *dev) 1177 + static void i740fb_remove(struct pci_dev *dev) 1177 1178 { 1178 1179 struct fb_info *info = pci_get_drvdata(dev); 1179 1180 ··· 1274 1275 .name = "i740fb", 1275 1276 .id_table = i740fb_id_table, 1276 1277 .probe = i740fb_probe, 1277 - .remove = __devexit_p(i740fb_remove), 1278 + .remove = i740fb_remove, 1278 1279 .suspend = i740fb_suspend, 1279 1280 .resume = i740fb_resume, 1280 1281 };
+35 -37
drivers/video/i810/i810_main.c
··· 74 74 * 75 75 * Experiment with v_offset to find out which works best for you. 76 76 */ 77 - static u32 v_offset_default __devinitdata; /* For 32 MiB Aper size, 8 should be the default */ 78 - static u32 voffset __devinitdata; 77 + static u32 v_offset_default; /* For 32 MiB Aper size, 8 should be the default */ 78 + static u32 voffset; 79 79 80 80 static int i810fb_cursor(struct fb_info *info, struct fb_cursor *cursor); 81 - static int __devinit i810fb_init_pci (struct pci_dev *dev, 82 - const struct pci_device_id *entry); 81 + static int i810fb_init_pci(struct pci_dev *dev, 82 + const struct pci_device_id *entry); 83 83 static void __exit i810fb_remove_pci(struct pci_dev *dev); 84 84 static int i810fb_resume(struct pci_dev *dev); 85 85 static int i810fb_suspend(struct pci_dev *dev, pm_message_t state); ··· 97 97 static void i810fb_release_resource (struct fb_info *info, struct i810fb_par *par); 98 98 99 99 /* PCI */ 100 - static const char * const i810_pci_list[] __devinitconst = { 100 + static const char * const i810_pci_list[] = { 101 101 "Intel(R) 810 Framebuffer Device" , 102 102 "Intel(R) 810-DC100 Framebuffer Device" , 103 103 "Intel(R) 810E Framebuffer Device" , ··· 132 132 .resume = i810fb_resume, 133 133 }; 134 134 135 - static char *mode_option __devinitdata = NULL; 136 - static int vram __devinitdata = 4; 137 - static int bpp __devinitdata = 8; 138 - static bool mtrr __devinitdata; 139 - static bool accel __devinitdata; 140 - static int hsync1 __devinitdata; 141 - static int hsync2 __devinitdata; 142 - static int vsync1 __devinitdata; 143 - static int vsync2 __devinitdata; 144 - static int xres __devinitdata; 135 + static char *mode_option = NULL; 136 + static int vram = 4; 137 + static int bpp = 8; 138 + static bool mtrr; 139 + static bool accel; 140 + static int hsync1; 141 + static int hsync2; 142 + static int vsync1; 143 + static int vsync2; 144 + static int xres; 145 145 static int yres; 146 - static int vyres __devinitdata; 147 - static bool sync __devinitdata; 148 - static bool extvga __devinitdata; 149 - static bool dcolor __devinitdata; 150 - static bool ddc3 __devinitdata; 146 + static int vyres; 147 + static bool sync; 148 + static bool extvga; 149 + static bool dcolor; 150 + static bool ddc3; 151 151 152 152 /*------------------------------------------------------------*/ 153 153 ··· 1541 1541 return 0; 1542 1542 } 1543 1543 1544 - static struct fb_ops i810fb_ops __devinitdata = { 1544 + static struct fb_ops i810fb_ops = { 1545 1545 .owner = THIS_MODULE, 1546 1546 .fb_open = i810fb_open, 1547 1547 .fb_release = i810fb_release, ··· 1628 1628 * AGP resource allocation * 1629 1629 ***********************************************************************/ 1630 1630 1631 - static void __devinit i810_fix_pointers(struct i810fb_par *par) 1631 + static void i810_fix_pointers(struct i810fb_par *par) 1632 1632 { 1633 1633 par->fb.physical = par->aperture.physical+(par->fb.offset << 12); 1634 1634 par->fb.virtual = par->aperture.virtual+(par->fb.offset << 12); ··· 1640 1640 (par->cursor_heap.offset << 12); 1641 1641 } 1642 1642 1643 - static void __devinit i810_fix_offsets(struct i810fb_par *par) 1643 + static void i810_fix_offsets(struct i810fb_par *par) 1644 1644 { 1645 1645 if (vram + 1 > par->aperture.size >> 20) 1646 1646 vram = (par->aperture.size >> 20) - 1; ··· 1660 1660 par->cursor_heap.size = 4096; 1661 1661 } 1662 1662 1663 - static int __devinit i810_alloc_agp_mem(struct fb_info *info) 1663 + static int i810_alloc_agp_mem(struct fb_info *info) 1664 1664 { 1665 1665 struct i810fb_par *par = info->par; 1666 1666 int size; ··· 1723 1723 * Sets the user monitor's horizontal and vertical 1724 1724 * frequency limits 1725 1725 */ 1726 - static void __devinit i810_init_monspecs(struct fb_info *info) 1726 + static void i810_init_monspecs(struct fb_info *info) 1727 1727 { 1728 1728 if (!hsync1) 1729 1729 hsync1 = HFMIN; ··· 1755 1755 * @par: pointer to i810fb_par structure 1756 1756 * @info: pointer to current fb_info structure 1757 1757 */ 1758 - static void __devinit i810_init_defaults(struct i810fb_par *par, 1759 - struct fb_info *info) 1758 + static void i810_init_defaults(struct i810fb_par *par, struct fb_info *info) 1760 1759 { 1761 1760 mutex_init(&par->open_lock); 1762 1761 ··· 1811 1812 * i810_init_device - initialize device 1812 1813 * @par: pointer to i810fb_par structure 1813 1814 */ 1814 - static void __devinit i810_init_device(struct i810fb_par *par) 1815 + static void i810_init_device(struct i810fb_par *par) 1815 1816 { 1816 1817 u8 reg; 1817 1818 u8 __iomem *mmio = par->mmio_start_virtual; ··· 1832 1833 1833 1834 } 1834 1835 1835 - static int __devinit 1836 - i810_allocate_pci_resource(struct i810fb_par *par, 1837 - const struct pci_device_id *entry) 1836 + static int i810_allocate_pci_resource(struct i810fb_par *par, 1837 + const struct pci_device_id *entry) 1838 1838 { 1839 1839 int err; 1840 1840 ··· 1890 1892 return 0; 1891 1893 } 1892 1894 1893 - static void __devinit i810fb_find_init_mode(struct fb_info *info) 1895 + static void i810fb_find_init_mode(struct fb_info *info) 1894 1896 { 1895 1897 struct fb_videomode mode; 1896 1898 struct fb_var_screeninfo var; ··· 1954 1956 } 1955 1957 1956 1958 #ifndef MODULE 1957 - static int __devinit i810fb_setup(char *options) 1959 + static int i810fb_setup(char *options) 1958 1960 { 1959 1961 char *this_opt, *suffix = NULL; 1960 1962 ··· 2005 2007 } 2006 2008 #endif 2007 2009 2008 - static int __devinit i810fb_init_pci (struct pci_dev *dev, 2009 - const struct pci_device_id *entry) 2010 + static int i810fb_init_pci(struct pci_dev *dev, 2011 + const struct pci_device_id *entry) 2010 2012 { 2011 2013 struct fb_info *info; 2012 2014 struct i810fb_par *par = NULL; ··· 2134 2136 } 2135 2137 2136 2138 #ifndef MODULE 2137 - static int __devinit i810fb_init(void) 2139 + static int i810fb_init(void) 2138 2140 { 2139 2141 char *option = NULL; 2140 2142 ··· 2152 2154 2153 2155 #ifdef MODULE 2154 2156 2155 - static int __devinit i810fb_init(void) 2157 + static int i810fb_init(void) 2156 2158 { 2157 2159 hsync1 *= 1000; 2158 2160 hsync2 *= 1000;
+1 -1
drivers/video/i810/i810_main.h
··· 64 64 65 65 #include <asm/mtrr.h> 66 66 67 - static inline void __devinit set_mtrr(struct i810fb_par *par) 67 + static inline void set_mtrr(struct i810fb_par *par) 68 68 { 69 69 par->mtrr_reg = mtrr_add((u32) par->aperture.physical, 70 70 par->aperture.size, MTRR_TYPE_WRCOMB, 1);
+1 -1
drivers/video/igafb.c
··· 571 571 572 572 module_init(igafb_init); 573 573 MODULE_LICENSE("GPL"); 574 - static struct pci_device_id igafb_pci_tbl[] __devinitdata = { 574 + static struct pci_device_id igafb_pci_tbl[] = { 575 575 { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_1682, 576 576 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 577 577 { }
+7 -10
drivers/video/imsttfb.c
··· 225 225 __u8 addr, value; 226 226 }; 227 227 228 - static struct initvalues ibm_initregs[] __devinitdata = { 228 + static struct initvalues ibm_initregs[] = { 229 229 { CLKCTL, 0x21 }, 230 230 { SYNCCTL, 0x00 }, 231 231 { HSYNCPOS, 0x00 }, ··· 272 272 { KEYCTL, 0x00 } 273 273 }; 274 274 275 - static struct initvalues tvp_initregs[] __devinitdata = { 275 + static struct initvalues tvp_initregs[] = { 276 276 { TVPIRICC, 0x00 }, 277 277 { TVPIRBRC, 0xe4 }, 278 278 { TVPIRLAC, 0x06 }, ··· 336 336 static int inverse = 0; 337 337 static char fontname[40] __initdata = { 0 }; 338 338 #if defined(CONFIG_PPC) 339 - static signed char init_vmode __devinitdata = -1, init_cmode __devinitdata = -1; 339 + static signed char init_vmode = -1, init_cmode = -1; 340 340 #endif 341 341 342 342 static struct imstt_regvals tvp_reg_init_2 = { ··· 1333 1333 .name = "imsttfb", 1334 1334 .id_table = imsttfb_pci_tbl, 1335 1335 .probe = imsttfb_probe, 1336 - .remove = __devexit_p(imsttfb_remove), 1336 + .remove = imsttfb_remove, 1337 1337 }; 1338 1338 1339 1339 static struct fb_ops imsttfb_ops = { ··· 1349 1349 .fb_ioctl = imsttfb_ioctl, 1350 1350 }; 1351 1351 1352 - static void __devinit 1353 - init_imstt(struct fb_info *info) 1352 + static void init_imstt(struct fb_info *info) 1354 1353 { 1355 1354 struct imstt_par *par = info->par; 1356 1355 __u32 i, tmp, *ip, *end; ··· 1465 1466 info->node, info->fix.id, info->fix.smem_len >> 20, tmp); 1466 1467 } 1467 1468 1468 - static int __devinit 1469 - imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 1469 + static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 1470 1470 { 1471 1471 unsigned long addr, size; 1472 1472 struct imstt_par *par; ··· 1532 1534 return 0; 1533 1535 } 1534 1536 1535 - static void __devexit 1536 - imsttfb_remove(struct pci_dev *pdev) 1537 + static void imsttfb_remove(struct pci_dev *pdev) 1537 1538 { 1538 1539 struct fb_info *info = pci_get_drvdata(pdev); 1539 1540 struct imstt_par *par = info->par;
+2 -2
drivers/video/imxfb.c
··· 917 917 return ret; 918 918 } 919 919 920 - static int __devexit imxfb_remove(struct platform_device *pdev) 920 + static int imxfb_remove(struct platform_device *pdev) 921 921 { 922 922 struct imx_fb_platform_data *pdata; 923 923 struct fb_info *info = platform_get_drvdata(pdev); ··· 959 959 static struct platform_driver imxfb_driver = { 960 960 .suspend = imxfb_suspend, 961 961 .resume = imxfb_resume, 962 - .remove = __devexit_p(imxfb_remove), 962 + .remove = imxfb_remove, 963 963 .shutdown = imxfb_shutdown, 964 964 .driver = { 965 965 .name = DRIVER_NAME,
+14 -15
drivers/video/intelfb/intelfbdrv.c
··· 132 132 #include "intelfbhw.h" 133 133 #include "../edid.h" 134 134 135 - static void __devinit get_initial_mode(struct intelfb_info *dinfo); 135 + static void get_initial_mode(struct intelfb_info *dinfo); 136 136 static void update_dinfo(struct intelfb_info *dinfo, 137 137 struct fb_var_screeninfo *var); 138 138 static int intelfb_open(struct fb_info *info, int user); ··· 162 162 static int intelfb_ioctl(struct fb_info *info, 163 163 unsigned int cmd, unsigned long arg); 164 164 165 - static int __devinit intelfb_pci_register(struct pci_dev *pdev, 166 - const struct pci_device_id *ent); 167 - static void __devexit intelfb_pci_unregister(struct pci_dev *pdev); 168 - static int __devinit intelfb_set_fbinfo(struct intelfb_info *dinfo); 165 + static int intelfb_pci_register(struct pci_dev *pdev, 166 + const struct pci_device_id *ent); 167 + static void intelfb_pci_unregister(struct pci_dev *pdev); 168 + static int intelfb_set_fbinfo(struct intelfb_info *dinfo); 169 169 170 170 /* 171 171 * Limiting the class to PCI_CLASS_DISPLAY_VGA prevents function 1 of the ··· 177 177 #define INTELFB_CLASS_MASK 0 178 178 #endif 179 179 180 - static struct pci_device_id intelfb_pci_table[] __devinitdata = { 180 + static struct pci_device_id intelfb_pci_table[] = { 181 181 { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_830M, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_830M }, 182 182 { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_845G, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_845G }, 183 183 { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_85XGM, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_85XGM }, ··· 219 219 .name = "intelfb", 220 220 .id_table = intelfb_pci_table, 221 221 .probe = intelfb_pci_register, 222 - .remove = __devexit_p(intelfb_pci_unregister) 222 + .remove = intelfb_pci_unregister, 223 223 }; 224 224 225 225 /* Module description/parameters */ ··· 415 415 ***************************************************************/ 416 416 417 417 #ifdef CONFIG_MTRR 418 - static inline void __devinit set_mtrr(struct intelfb_info *dinfo) 418 + static inline void set_mtrr(struct intelfb_info *dinfo) 419 419 { 420 420 dinfo->mtrr_reg = mtrr_add(dinfo->aperture.physical, 421 421 dinfo->aperture.size, MTRR_TYPE_WRCOMB, 1); ··· 497 497 } while (0) 498 498 499 499 500 - static int __devinit intelfb_pci_register(struct pci_dev *pdev, 501 - const struct pci_device_id *ent) 500 + static int intelfb_pci_register(struct pci_dev *pdev, 501 + const struct pci_device_id *ent) 502 502 { 503 503 struct fb_info *info; 504 504 struct intelfb_info *dinfo; ··· 921 921 return -ENODEV; 922 922 } 923 923 924 - static void __devexit 925 - intelfb_pci_unregister(struct pci_dev *pdev) 924 + static void intelfb_pci_unregister(struct pci_dev *pdev) 926 925 { 927 926 struct intelfb_info *dinfo = pci_get_drvdata(pdev); 928 927 ··· 969 970 * Various intialisation functions * 970 971 ***************************************************************/ 971 972 972 - static void __devinit get_initial_mode(struct intelfb_info *dinfo) 973 + static void get_initial_mode(struct intelfb_info *dinfo) 973 974 { 974 975 struct fb_var_screeninfo *var; 975 976 int xtot, ytot; ··· 1036 1037 } 1037 1038 } 1038 1039 1039 - static int __devinit intelfb_init_var(struct intelfb_info *dinfo) 1040 + static int intelfb_init_var(struct intelfb_info *dinfo) 1040 1041 { 1041 1042 struct fb_var_screeninfo *var; 1042 1043 int msrc = 0; ··· 1117 1118 return 0; 1118 1119 } 1119 1120 1120 - static int __devinit intelfb_set_fbinfo(struct intelfb_info *dinfo) 1121 + static int intelfb_set_fbinfo(struct intelfb_info *dinfo) 1121 1122 { 1122 1123 struct fb_info *info = dinfo->info; 1123 1124
+4 -4
drivers/video/jz4740_fb.c
··· 136 136 uint32_t pseudo_palette[16]; 137 137 }; 138 138 139 - static const struct fb_fix_screeninfo jzfb_fix __devinitconst = { 139 + static const struct fb_fix_screeninfo jzfb_fix = { 140 140 .id = "JZ4740 FB", 141 141 .type = FB_TYPE_PACKED_PIXELS, 142 142 .visual = FB_VISUAL_TRUECOLOR, ··· 619 619 .fb_setcolreg = jzfb_setcolreg, 620 620 }; 621 621 622 - static int __devinit jzfb_probe(struct platform_device *pdev) 622 + static int jzfb_probe(struct platform_device *pdev) 623 623 { 624 624 int ret; 625 625 struct jzfb *jzfb; ··· 725 725 return ret; 726 726 } 727 727 728 - static int __devexit jzfb_remove(struct platform_device *pdev) 728 + static int jzfb_remove(struct platform_device *pdev) 729 729 { 730 730 struct jzfb *jzfb = platform_get_drvdata(pdev); 731 731 ··· 794 794 795 795 static struct platform_driver jzfb_driver = { 796 796 .probe = jzfb_probe, 797 - .remove = __devexit_p(jzfb_remove), 797 + .remove = jzfb_remove, 798 798 .driver = { 799 799 .name = "jz4740-fb", 800 800 .pm = JZFB_PM_OPS,
+10 -11
drivers/video/kyro/fbdev.c
··· 40 40 #define KHZ2PICOS(a) (1000000000UL/(a)) 41 41 42 42 /****************************************************************************/ 43 - static struct fb_fix_screeninfo kyro_fix __devinitdata = { 43 + static struct fb_fix_screeninfo kyro_fix = { 44 44 .id = "ST Kyro", 45 45 .type = FB_TYPE_PACKED_PIXELS, 46 46 .visual = FB_VISUAL_TRUECOLOR, 47 47 .accel = FB_ACCEL_NONE, 48 48 }; 49 49 50 - static struct fb_var_screeninfo kyro_var __devinitdata = { 50 + static struct fb_var_screeninfo kyro_var = { 51 51 /* 640x480, 16bpp @ 60 Hz */ 52 52 .xres = 640, 53 53 .yres = 480, ··· 81 81 /* global graphics card info structure (one per card) */ 82 82 static device_info_t deviceInfo; 83 83 84 - static char *mode_option __devinitdata = NULL; 85 - static int nopan __devinitdata = 0; 86 - static int nowrap __devinitdata = 1; 84 + static char *mode_option = NULL; 85 + static int nopan = 0; 86 + static int nowrap = 1; 87 87 #ifdef CONFIG_MTRR 88 - static int nomtrr __devinitdata = 0; 88 + static int nomtrr = 0; 89 89 #endif 90 90 91 91 /* PCI driver prototypes */ 92 92 static int kyrofb_probe(struct pci_dev *pdev, const struct pci_device_id *ent); 93 93 static void kyrofb_remove(struct pci_dev *pdev); 94 94 95 - static struct fb_videomode kyro_modedb[] __devinitdata = { 95 + static struct fb_videomode kyro_modedb[] = { 96 96 { 97 97 /* 640x350 @ 85Hz */ 98 98 NULL, 85, 640, 350, KHZ2PICOS(31500), ··· 653 653 .name = "kyrofb", 654 654 .id_table = kyrofb_pci_tbl, 655 655 .probe = kyrofb_probe, 656 - .remove = __devexit_p(kyrofb_remove), 656 + .remove = kyrofb_remove, 657 657 }; 658 658 659 659 static struct fb_ops kyrofb_ops = { ··· 667 667 .fb_imageblit = cfb_imageblit, 668 668 }; 669 669 670 - static int __devinit kyrofb_probe(struct pci_dev *pdev, 671 - const struct pci_device_id *ent) 670 + static int kyrofb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 672 671 { 673 672 struct fb_info *info; 674 673 struct kyrofb_info *currentpar; ··· 753 754 return -EINVAL; 754 755 } 755 756 756 - static void __devexit kyrofb_remove(struct pci_dev *pdev) 757 + static void kyrofb_remove(struct pci_dev *pdev) 757 758 { 758 759 struct fb_info *info = pci_get_drvdata(pdev); 759 760 struct kyrofb_info *par = info->par;
+3 -3
drivers/video/leo.c
··· 547 547 of_iounmap(&op->resource[0], info->screen_base, 0x800000); 548 548 } 549 549 550 - static int __devinit leo_probe(struct platform_device *op) 550 + static int leo_probe(struct platform_device *op) 551 551 { 552 552 struct device_node *dp = op->dev.of_node; 553 553 struct fb_info *info; ··· 636 636 return err; 637 637 } 638 638 639 - static int __devexit leo_remove(struct platform_device *op) 639 + static int leo_remove(struct platform_device *op) 640 640 { 641 641 struct fb_info *info = dev_get_drvdata(&op->dev); 642 642 struct leo_par *par = info->par; ··· 668 668 .of_match_table = leo_match, 669 669 }, 670 670 .probe = leo_probe, 671 - .remove = __devexit_p(leo_remove), 671 + .remove = leo_remove, 672 672 }; 673 673 674 674 static int __init leo_init(void)
+10 -10
drivers/video/mb862xx/mb862xxfbdrv.c
··· 668 668 return 0; 669 669 } 670 670 671 - static int __devinit of_platform_mb862xx_probe(struct platform_device *ofdev) 671 + static int of_platform_mb862xx_probe(struct platform_device *ofdev) 672 672 { 673 673 struct device_node *np = ofdev->dev.of_node; 674 674 struct device *dev = &ofdev->dev; ··· 786 786 return ret; 787 787 } 788 788 789 - static int __devexit of_platform_mb862xx_remove(struct platform_device *ofdev) 789 + static int of_platform_mb862xx_remove(struct platform_device *ofdev) 790 790 { 791 791 struct fb_info *fbi = dev_get_drvdata(&ofdev->dev); 792 792 struct mb862xxfb_par *par = fbi->par; ··· 823 823 /* 824 824 * common types 825 825 */ 826 - static struct of_device_id __devinitdata of_platform_mb862xx_tbl[] = { 826 + static struct of_device_id of_platform_mb862xx_tbl[] = { 827 827 { .compatible = "fujitsu,MB86276", }, 828 828 { .compatible = "fujitsu,lime", }, 829 829 { .compatible = "fujitsu,MB86277", }, ··· 841 841 .of_match_table = of_platform_mb862xx_tbl, 842 842 }, 843 843 .probe = of_platform_mb862xx_probe, 844 - .remove = __devexit_p(of_platform_mb862xx_remove), 844 + .remove = of_platform_mb862xx_remove, 845 845 }; 846 846 #endif 847 847 ··· 984 984 #define CHIP_ID(id) \ 985 985 { PCI_DEVICE(PCI_VENDOR_ID_FUJITSU_LIMITED, id) } 986 986 987 - static struct pci_device_id mb862xx_pci_tbl[] __devinitdata = { 987 + static struct pci_device_id mb862xx_pci_tbl[] = { 988 988 /* MB86295/MB86296 */ 989 989 CHIP_ID(PCI_DEVICE_ID_FUJITSU_CORALP), 990 990 CHIP_ID(PCI_DEVICE_ID_FUJITSU_CORALPA), ··· 995 995 996 996 MODULE_DEVICE_TABLE(pci, mb862xx_pci_tbl); 997 997 998 - static int __devinit mb862xx_pci_probe(struct pci_dev *pdev, 999 - const struct pci_device_id *ent) 998 + static int mb862xx_pci_probe(struct pci_dev *pdev, 999 + const struct pci_device_id *ent) 1000 1000 { 1001 1001 struct mb862xxfb_par *par; 1002 1002 struct fb_info *info; ··· 1133 1133 return ret; 1134 1134 } 1135 1135 1136 - static void __devexit mb862xx_pci_remove(struct pci_dev *pdev) 1136 + static void mb862xx_pci_remove(struct pci_dev *pdev) 1137 1137 { 1138 1138 struct fb_info *fbi = pci_get_drvdata(pdev); 1139 1139 struct mb862xxfb_par *par = fbi->par; ··· 1174 1174 .name = DRV_NAME, 1175 1175 .id_table = mb862xx_pci_tbl, 1176 1176 .probe = mb862xx_pci_probe, 1177 - .remove = __devexit_p(mb862xx_pci_remove), 1177 + .remove = mb862xx_pci_remove, 1178 1178 }; 1179 1179 #endif 1180 1180 1181 - static int __devinit mb862xxfb_init(void) 1181 + static int mb862xxfb_init(void) 1182 1182 { 1183 1183 int ret = -ENODEV; 1184 1184
+2 -2
drivers/video/mbx/mbxdebugfs.c
··· 213 213 .llseek = default_llseek, 214 214 }; 215 215 216 - static void __devinit mbxfb_debugfs_init(struct fb_info *fbi) 216 + static void mbxfb_debugfs_init(struct fb_info *fbi) 217 217 { 218 218 struct mbxfb_info *mfbi = fbi->par; 219 219 struct mbxfb_debugfs_data *dbg; ··· 236 236 fbi, &misc_fops); 237 237 } 238 238 239 - static void __devexit mbxfb_debugfs_remove(struct fb_info *fbi) 239 + static void mbxfb_debugfs_remove(struct fb_info *fbi) 240 240 { 241 241 struct mbxfb_info *mfbi = fbi->par; 242 242 struct mbxfb_debugfs_data *dbg = mfbi->debugfs_data;
+9 -9
drivers/video/mbx/mbxfb.c
··· 79 79 80 80 }; 81 81 82 - static struct fb_var_screeninfo mbxfb_default __devinitdata = { 82 + static struct fb_var_screeninfo mbxfb_default = { 83 83 .xres = 640, 84 84 .yres = 480, 85 85 .xres_virtual = 640, ··· 102 102 .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 103 103 }; 104 104 105 - static struct fb_fix_screeninfo mbxfb_fix __devinitdata = { 105 + static struct fb_fix_screeninfo mbxfb_fix = { 106 106 .id = "MBX", 107 107 .type = FB_TYPE_PACKED_PIXELS, 108 108 .visual = FB_VISUAL_TRUECOLOR, ··· 687 687 Enable external SDRAM controller. Assume that all clocks are active 688 688 by now. 689 689 */ 690 - static void __devinit setup_memc(struct fb_info *fbi) 690 + static void setup_memc(struct fb_info *fbi) 691 691 { 692 692 unsigned long tmp; 693 693 int i; ··· 747 747 write_reg_dly(0x00000001, PIXCLKDIV); 748 748 } 749 749 750 - static void __devinit setup_graphics(struct fb_info *fbi) 750 + static void setup_graphics(struct fb_info *fbi) 751 751 { 752 752 unsigned long gsctrl; 753 753 unsigned long vscadr; ··· 781 781 write_reg_dly(vscadr, VSCADR); 782 782 } 783 783 784 - static void __devinit setup_display(struct fb_info *fbi) 784 + static void setup_display(struct fb_info *fbi) 785 785 { 786 786 unsigned long dsctrl = 0; 787 787 ··· 795 795 write_reg_dly((readl(DSCTRL) | DSCTRL_SYNCGEN_EN), DSCTRL); 796 796 } 797 797 798 - static void __devinit enable_controller(struct fb_info *fbi) 798 + static void enable_controller(struct fb_info *fbi) 799 799 { 800 800 u32 svctrl, shctrl; 801 801 ··· 881 881 882 882 #define res_size(_r) (((_r)->end - (_r)->start) + 1) 883 883 884 - static int __devinit mbxfb_probe(struct platform_device *dev) 884 + static int mbxfb_probe(struct platform_device *dev) 885 885 { 886 886 int ret; 887 887 struct fb_info *fbi; ··· 1006 1006 return ret; 1007 1007 } 1008 1008 1009 - static int __devexit mbxfb_remove(struct platform_device *dev) 1009 + static int mbxfb_remove(struct platform_device *dev) 1010 1010 { 1011 1011 struct fb_info *fbi = platform_get_drvdata(dev); 1012 1012 ··· 1038 1038 1039 1039 static struct platform_driver mbxfb_driver = { 1040 1040 .probe = mbxfb_probe, 1041 - .remove = __devexit_p(mbxfb_remove), 1041 + .remove = mbxfb_remove, 1042 1042 .suspend = mbxfb_suspend, 1043 1043 .resume = mbxfb_resume, 1044 1044 .driver = {
+11 -11
drivers/video/metronomefb.c
··· 99 99 }, 100 100 }; 101 101 102 - static struct fb_fix_screeninfo metronomefb_fix __devinitdata = { 102 + static struct fb_fix_screeninfo metronomefb_fix = { 103 103 .id = "metronomefb", 104 104 .type = FB_TYPE_PACKED_PIXELS, 105 105 .visual = FB_VISUAL_STATIC_PSEUDOCOLOR, ··· 110 110 .accel = FB_ACCEL_NONE, 111 111 }; 112 112 113 - static struct fb_var_screeninfo metronomefb_var __devinitdata = { 113 + static struct fb_var_screeninfo metronomefb_var = { 114 114 .xres = DPY_W, 115 115 .yres = DPY_H, 116 116 .xres_virtual = DPY_W, ··· 167 167 } 168 168 169 169 /* here we decode the incoming waveform file and populate metromem */ 170 - static int __devinit load_waveform(u8 *mem, size_t size, int m, int t, 171 - struct metronomefb_par *par) 170 + static int load_waveform(u8 *mem, size_t size, int m, int t, 171 + struct metronomefb_par *par) 172 172 { 173 173 int tta; 174 174 int wmta; ··· 338 338 return par->board->met_wait_event_intr(par); 339 339 } 340 340 341 - static int __devinit metronome_powerup_cmd(struct metronomefb_par *par) 341 + static int metronome_powerup_cmd(struct metronomefb_par *par) 342 342 { 343 343 int i; 344 344 u16 cs; ··· 367 367 return par->board->met_wait_event(par); 368 368 } 369 369 370 - static int __devinit metronome_config_cmd(struct metronomefb_par *par) 370 + static int metronome_config_cmd(struct metronomefb_par *par) 371 371 { 372 372 /* setup config command 373 373 we can't immediately set the opcode since the controller ··· 385 385 return par->board->met_wait_event(par); 386 386 } 387 387 388 - static int __devinit metronome_init_cmd(struct metronomefb_par *par) 388 + static int metronome_init_cmd(struct metronomefb_par *par) 389 389 { 390 390 int i; 391 391 u16 cs; ··· 411 411 return par->board->met_wait_event(par); 412 412 } 413 413 414 - static int __devinit metronome_init_regs(struct metronomefb_par *par) 414 + static int metronome_init_regs(struct metronomefb_par *par) 415 415 { 416 416 int res; 417 417 ··· 569 569 .deferred_io = metronomefb_dpy_deferred_io, 570 570 }; 571 571 572 - static int __devinit metronomefb_probe(struct platform_device *dev) 572 + static int metronomefb_probe(struct platform_device *dev) 573 573 { 574 574 struct fb_info *info; 575 575 struct metronome_board *board; ··· 741 741 return retval; 742 742 } 743 743 744 - static int __devexit metronomefb_remove(struct platform_device *dev) 744 + static int metronomefb_remove(struct platform_device *dev) 745 745 { 746 746 struct fb_info *info = platform_get_drvdata(dev); 747 747 ··· 763 763 764 764 static struct platform_driver metronomefb_driver = { 765 765 .probe = metronomefb_probe, 766 - .remove = __devexit_p(metronomefb_remove), 766 + .remove = metronomefb_remove, 767 767 .driver = { 768 768 .owner = THIS_MODULE, 769 769 .name = "metronomefb",
+4 -5
drivers/video/msm/mddi.c
··· 417 417 mddi_set_auto_hibernate(&mddi->client_data, 1); 418 418 } 419 419 420 - static int __devinit mddi_get_client_caps(struct mddi_info *mddi) 420 + static int mddi_get_client_caps(struct mddi_info *mddi) 421 421 { 422 422 int i, j; 423 423 ··· 619 619 620 620 static struct mddi_info mddi_info[2]; 621 621 622 - static int __devinit mddi_clk_setup(struct platform_device *pdev, 623 - struct mddi_info *mddi, 624 - unsigned long clk_rate) 622 + static int mddi_clk_setup(struct platform_device *pdev, struct mddi_info *mddi, 623 + unsigned long clk_rate) 625 624 { 626 625 int ret; 627 626 ··· 663 664 return 0; 664 665 } 665 666 666 - static int __devinit mddi_probe(struct platform_device *pdev) 667 + static int mddi_probe(struct platform_device *pdev) 667 668 { 668 669 struct msm_mddi_platform_data *pdata = pdev->dev.platform_data; 669 670 struct mddi_info *mddi = &mddi_info[pdev->id];
+6 -6
drivers/video/mxsfb.c
··· 586 586 .fb_imageblit = cfb_imageblit, 587 587 }; 588 588 589 - static int __devinit mxsfb_restore_mode(struct mxsfb_info *host) 589 + static int mxsfb_restore_mode(struct mxsfb_info *host) 590 590 { 591 591 struct fb_info *fb_info = &host->fb_info; 592 592 unsigned line_count; ··· 677 677 return 0; 678 678 } 679 679 680 - static int __devinit mxsfb_init_fbinfo(struct mxsfb_info *host) 680 + static int mxsfb_init_fbinfo(struct mxsfb_info *host) 681 681 { 682 682 struct fb_info *fb_info = &host->fb_info; 683 683 struct fb_var_screeninfo *var = &fb_info->var; ··· 739 739 return 0; 740 740 } 741 741 742 - static void __devexit mxsfb_free_videomem(struct mxsfb_info *host) 742 + static void mxsfb_free_videomem(struct mxsfb_info *host) 743 743 { 744 744 struct fb_info *fb_info = &host->fb_info; 745 745 ··· 772 772 }; 773 773 MODULE_DEVICE_TABLE(of, mxsfb_dt_ids); 774 774 775 - static int __devinit mxsfb_probe(struct platform_device *pdev) 775 + static int mxsfb_probe(struct platform_device *pdev) 776 776 { 777 777 const struct of_device_id *of_id = 778 778 of_match_device(mxsfb_dt_ids, &pdev->dev); ··· 912 912 return ret; 913 913 } 914 914 915 - static int __devexit mxsfb_remove(struct platform_device *pdev) 915 + static int mxsfb_remove(struct platform_device *pdev) 916 916 { 917 917 struct fb_info *fb_info = platform_get_drvdata(pdev); 918 918 struct mxsfb_info *host = to_imxfb_host(fb_info); ··· 949 949 950 950 static struct platform_driver mxsfb_driver = { 951 951 .probe = mxsfb_probe, 952 - .remove = __devexit_p(mxsfb_remove), 952 + .remove = mxsfb_remove, 953 953 .shutdown = mxsfb_shutdown, 954 954 .id_table = mxsfb_devtype, 955 955 .driver = {
+12 -14
drivers/video/neofb.c
··· 88 88 static bool libretto; 89 89 static bool nostretch; 90 90 static bool nopciburst; 91 - static char *mode_option __devinitdata = NULL; 91 + static char *mode_option = NULL; 92 92 93 93 #ifdef MODULE 94 94 ··· 1632 1632 1633 1633 /* --------------------------------------------------------------------- */ 1634 1634 1635 - static struct fb_videomode __devinitdata mode800x480 = { 1635 + static struct fb_videomode mode800x480 = { 1636 1636 .xres = 800, 1637 1637 .yres = 480, 1638 1638 .pixclock = 25000, ··· 1646 1646 .vmode = FB_VMODE_NONINTERLACED 1647 1647 }; 1648 1648 1649 - static int __devinit neo_map_mmio(struct fb_info *info, 1650 - struct pci_dev *dev) 1649 + static int neo_map_mmio(struct fb_info *info, struct pci_dev *dev) 1651 1650 { 1652 1651 struct neofb_par *par = info->par; 1653 1652 ··· 1706 1707 info->fix.mmio_len); 1707 1708 } 1708 1709 1709 - static int __devinit neo_map_video(struct fb_info *info, 1710 - struct pci_dev *dev, int video_len) 1710 + static int neo_map_video(struct fb_info *info, struct pci_dev *dev, 1711 + int video_len) 1711 1712 { 1712 1713 //unsigned long addr; 1713 1714 ··· 1771 1772 info->fix.smem_len); 1772 1773 } 1773 1774 1774 - static int __devinit neo_scan_monitor(struct fb_info *info) 1775 + static int neo_scan_monitor(struct fb_info *info) 1775 1776 { 1776 1777 struct neofb_par *par = info->par; 1777 1778 unsigned char type, display; ··· 1850 1851 return 0; 1851 1852 } 1852 1853 1853 - static int __devinit neo_init_hw(struct fb_info *info) 1854 + static int neo_init_hw(struct fb_info *info) 1854 1855 { 1855 1856 struct neofb_par *par = info->par; 1856 1857 int videoRam = 896; ··· 1938 1939 } 1939 1940 1940 1941 1941 - static struct fb_info *__devinit neo_alloc_fb_info(struct pci_dev *dev, const struct 1942 - pci_device_id *id) 1942 + static struct fb_info *neo_alloc_fb_info(struct pci_dev *dev, 1943 + const struct pci_device_id *id) 1943 1944 { 1944 1945 struct fb_info *info; 1945 1946 struct neofb_par *par; ··· 2037 2038 2038 2039 /* --------------------------------------------------------------------- */ 2039 2040 2040 - static int __devinit neofb_probe(struct pci_dev *dev, 2041 - const struct pci_device_id *id) 2041 + static int neofb_probe(struct pci_dev *dev, const struct pci_device_id *id) 2042 2042 { 2043 2043 struct fb_info *info; 2044 2044 u_int h_sync, v_sync; ··· 2126 2128 return err; 2127 2129 } 2128 2130 2129 - static void __devexit neofb_remove(struct pci_dev *dev) 2131 + static void neofb_remove(struct pci_dev *dev) 2130 2132 { 2131 2133 struct fb_info *info = pci_get_drvdata(dev); 2132 2134 ··· 2192 2194 .name = "neofb", 2193 2195 .id_table = neofb_devices, 2194 2196 .probe = neofb_probe, 2195 - .remove = __devexit_p(neofb_remove) 2197 + .remove = neofb_remove, 2196 2198 }; 2197 2199 2198 2200 /* ************************* init in-kernel code ************************** */
+2 -2
drivers/video/nuc900fb.c
··· 387 387 * The buffer should be a non-cached, non-buffered, memory region 388 388 * to allow palette and pixel writes without flushing the cache. 389 389 */ 390 - static int __devinit nuc900fb_map_video_memory(struct fb_info *info) 390 + static int nuc900fb_map_video_memory(struct fb_info *info) 391 391 { 392 392 struct nuc900fb_info *fbi = info->par; 393 393 dma_addr_t map_dma; ··· 499 499 500 500 static char driver_name[] = "nuc900fb"; 501 501 502 - static int __devinit nuc900fb_probe(struct platform_device *pdev) 502 + static int nuc900fb_probe(struct platform_device *pdev) 503 503 { 504 504 struct nuc900fb_info *fbi; 505 505 struct nuc900fb_display *display;
+24 -25
drivers/video/nvidia/nvidia.c
··· 70 70 MODULE_DEVICE_TABLE(pci, nvidiafb_pci_tbl); 71 71 72 72 /* command line data, set in nvidiafb_setup() */ 73 - static int flatpanel __devinitdata = -1; /* Autodetect later */ 74 - static int fpdither __devinitdata = -1; 75 - static int forceCRTC __devinitdata = -1; 76 - static int hwcur __devinitdata = 0; 77 - static int noaccel __devinitdata = 0; 78 - static int noscale __devinitdata = 0; 79 - static int paneltweak __devinitdata = 0; 80 - static int vram __devinitdata = 0; 81 - static int bpp __devinitdata = 8; 82 - static int reverse_i2c __devinitdata; 73 + static int flatpanel = -1; /* Autodetect later */ 74 + static int fpdither = -1; 75 + static int forceCRTC = -1; 76 + static int hwcur = 0; 77 + static int noaccel = 0; 78 + static int noscale = 0; 79 + static int paneltweak = 0; 80 + static int vram = 0; 81 + static int bpp = 8; 82 + static int reverse_i2c; 83 83 #ifdef CONFIG_MTRR 84 - static bool nomtrr __devinitdata = false; 84 + static bool nomtrr = false; 85 85 #endif 86 86 #ifdef CONFIG_PMAC_BACKLIGHT 87 - static int backlight __devinitdata = 1; 87 + static int backlight = 1; 88 88 #else 89 - static int backlight __devinitdata = 0; 89 + static int backlight = 0; 90 90 #endif 91 91 92 - static char *mode_option __devinitdata = NULL; 92 + static char *mode_option = NULL; 93 93 94 - static struct fb_fix_screeninfo __devinitdata nvidiafb_fix = { 94 + static struct fb_fix_screeninfo nvidiafb_fix = { 95 95 .type = FB_TYPE_PACKED_PIXELS, 96 96 .xpanstep = 8, 97 97 .ypanstep = 1, 98 98 }; 99 99 100 - static struct fb_var_screeninfo __devinitdata nvidiafb_default_var = { 100 + static struct fb_var_screeninfo nvidiafb_default_var = { 101 101 .xres = 640, 102 102 .yres = 480, 103 103 .xres_virtual = 640, ··· 1105 1105 #define nvidiafb_resume NULL 1106 1106 #endif 1107 1107 1108 - static int __devinit nvidia_set_fbinfo(struct fb_info *info) 1108 + static int nvidia_set_fbinfo(struct fb_info *info) 1109 1109 { 1110 1110 struct fb_monspecs *specs = &info->monspecs; 1111 1111 struct fb_videomode modedb; ··· 1201 1201 return nvidiafb_check_var(&info->var, info); 1202 1202 } 1203 1203 1204 - static u32 __devinit nvidia_get_chipset(struct fb_info *info) 1204 + static u32 nvidia_get_chipset(struct fb_info *info) 1205 1205 { 1206 1206 struct nvidia_par *par = info->par; 1207 1207 u32 id = (par->pci_dev->vendor << 16) | par->pci_dev->device; ··· 1224 1224 return id; 1225 1225 } 1226 1226 1227 - static u32 __devinit nvidia_get_arch(struct fb_info *info) 1227 + static u32 nvidia_get_arch(struct fb_info *info) 1228 1228 { 1229 1229 struct nvidia_par *par = info->par; 1230 1230 u32 arch = 0; ··· 1276 1276 return arch; 1277 1277 } 1278 1278 1279 - static int __devinit nvidiafb_probe(struct pci_dev *pd, 1280 - const struct pci_device_id *ent) 1279 + static int nvidiafb_probe(struct pci_dev *pd, const struct pci_device_id *ent) 1281 1280 { 1282 1281 struct nvidia_par *par; 1283 1282 struct fb_info *info; ··· 1437 1438 return -ENODEV; 1438 1439 } 1439 1440 1440 - static void __devexit nvidiafb_remove(struct pci_dev *pd) 1441 + static void nvidiafb_remove(struct pci_dev *pd) 1441 1442 { 1442 1443 struct fb_info *info = pci_get_drvdata(pd); 1443 1444 struct nvidia_par *par = info->par; ··· 1472 1473 * ------------------------------------------------------------------------- */ 1473 1474 1474 1475 #ifndef MODULE 1475 - static int __devinit nvidiafb_setup(char *options) 1476 + static int nvidiafb_setup(char *options) 1476 1477 { 1477 1478 char *this_opt; 1478 1479 ··· 1528 1529 .probe = nvidiafb_probe, 1529 1530 .suspend = nvidiafb_suspend, 1530 1531 .resume = nvidiafb_resume, 1531 - .remove = __devexit_p(nvidiafb_remove), 1532 + .remove = nvidiafb_remove, 1532 1533 }; 1533 1534 1534 1535 /* ------------------------------------------------------------------------- * ··· 1537 1538 * 1538 1539 * ------------------------------------------------------------------------- */ 1539 1540 1540 - static int __devinit nvidiafb_init(void) 1541 + static int nvidiafb_init(void) 1541 1542 { 1542 1543 #ifndef MODULE 1543 1544 char *option = NULL;
+1 -1
drivers/video/omap/lcd_mipid.c
··· 606 606 .owner = THIS_MODULE, 607 607 }, 608 608 .probe = mipid_spi_probe, 609 - .remove = __devexit_p(mipid_spi_remove), 609 + .remove = mipid_spi_remove, 610 610 }; 611 611 612 612 module_spi_driver(mipid_spi_driver);
+1 -1
drivers/video/omap2/displays/panel-acx565akm.c
··· 777 777 .owner = THIS_MODULE, 778 778 }, 779 779 .probe = acx565akm_spi_probe, 780 - .remove = __devexit_p(acx565akm_spi_remove), 780 + .remove = acx565akm_spi_remove, 781 781 }; 782 782 783 783 module_spi_driver(acx565akm_spi_driver);
+3 -3
drivers/video/omap2/displays/panel-lgphilips-lb035q02.c
··· 216 216 lb035q02_write_reg(spi, 0x3b, 0x0806); 217 217 } 218 218 219 - static int __devinit lb035q02_panel_spi_probe(struct spi_device *spi) 219 + static int lb035q02_panel_spi_probe(struct spi_device *spi) 220 220 { 221 221 init_lb035q02_panel(spi); 222 222 return omap_dss_register_driver(&lb035q02_driver); 223 223 } 224 224 225 - static int __devexit lb035q02_panel_spi_remove(struct spi_device *spi) 225 + static int lb035q02_panel_spi_remove(struct spi_device *spi) 226 226 { 227 227 omap_dss_unregister_driver(&lb035q02_driver); 228 228 return 0; ··· 234 234 .owner = THIS_MODULE, 235 235 }, 236 236 .probe = lb035q02_panel_spi_probe, 237 - .remove = __devexit_p(lb035q02_panel_spi_remove), 237 + .remove = lb035q02_panel_spi_remove, 238 238 }; 239 239 240 240 module_spi_driver(lb035q02_spi_driver);
+1 -1
drivers/video/omap2/displays/panel-n8x0.c
··· 680 680 .owner = THIS_MODULE, 681 681 }, 682 682 .probe = mipid_spi_probe, 683 - .remove = __devexit_p(mipid_spi_remove), 683 + .remove = mipid_spi_remove, 684 684 }; 685 685 module_spi_driver(mipid_spi_driver); 686 686
+1 -1
drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c
··· 323 323 324 324 static struct spi_driver nec_8048_spi_driver = { 325 325 .probe = nec_8048_spi_probe, 326 - .remove = __devexit_p(nec_8048_spi_remove), 326 + .remove = nec_8048_spi_remove, 327 327 .suspend = nec_8048_spi_suspend, 328 328 .resume = nec_8048_spi_resume, 329 329 .driver = {
+2 -2
drivers/video/omap2/displays/panel-tpo-td043mtea1.c
··· 528 528 return 0; 529 529 } 530 530 531 - static int __devexit tpo_td043_spi_remove(struct spi_device *spi) 531 + static int tpo_td043_spi_remove(struct spi_device *spi) 532 532 { 533 533 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&spi->dev); 534 534 ··· 580 580 .pm = &tpo_td043_spi_pm, 581 581 }, 582 582 .probe = tpo_td043_spi_probe, 583 - .remove = __devexit_p(tpo_td043_spi_remove), 583 + .remove = tpo_td043_spi_remove, 584 584 }; 585 585 586 586 module_spi_driver(tpo_td043_spi_driver);
+3 -3
drivers/video/p9100.c
··· 249 249 info->fix.accel = FB_ACCEL_SUN_CGTHREE; 250 250 } 251 251 252 - static int __devinit p9100_probe(struct platform_device *op) 252 + static int p9100_probe(struct platform_device *op) 253 253 { 254 254 struct device_node *dp = op->dev.of_node; 255 255 struct fb_info *info; ··· 326 326 return err; 327 327 } 328 328 329 - static int __devexit p9100_remove(struct platform_device *op) 329 + static int p9100_remove(struct platform_device *op) 330 330 { 331 331 struct fb_info *info = dev_get_drvdata(&op->dev); 332 332 struct p9100_par *par = info->par; ··· 359 359 .of_match_table = p9100_match, 360 360 }, 361 361 .probe = p9100_probe, 362 - .remove = __devexit_p(p9100_remove), 362 + .remove = p9100_remove, 363 363 }; 364 364 365 365 static int __init p9100_init(void)
+6 -5
drivers/video/platinumfb.c
··· 313 313 /* 314 314 * Set misc info vars for this driver 315 315 */ 316 - static void __devinit platinum_init_info(struct fb_info *info, struct fb_info_platinum *pinfo) 316 + static void platinum_init_info(struct fb_info *info, 317 + struct fb_info_platinum *pinfo) 317 318 { 318 319 /* Fill fb_info */ 319 320 info->fbops = &platinumfb_ops; ··· 339 338 } 340 339 341 340 342 - static int __devinit platinum_init_fb(struct fb_info *info) 341 + static int platinum_init_fb(struct fb_info *info) 343 342 { 344 343 struct fb_info_platinum *pinfo = info->par; 345 344 struct fb_var_screeninfo var; ··· 534 533 #define invalidate_cache(addr) 535 534 #endif 536 535 537 - static int __devinit platinumfb_probe(struct platform_device* odev) 536 + static int platinumfb_probe(struct platform_device* odev) 538 537 { 539 538 struct device_node *dp = odev->dev.of_node; 540 539 struct fb_info *info; ··· 646 645 return rc; 647 646 } 648 647 649 - static int __devexit platinumfb_remove(struct platform_device* odev) 648 + static int platinumfb_remove(struct platform_device* odev) 650 649 { 651 650 struct fb_info *info = dev_get_drvdata(&odev->dev); 652 651 struct fb_info_platinum *pinfo = info->par; ··· 684 683 .of_match_table = platinumfb_match, 685 684 }, 686 685 .probe = platinumfb_probe, 687 - .remove = __devexit_p(platinumfb_remove), 686 + .remove = platinumfb_remove, 688 687 }; 689 688 690 689 static int __init platinumfb_init(void)
+8 -9
drivers/video/pm2fb.c
··· 67 67 * Driver data 68 68 */ 69 69 static int hwcursor = 1; 70 - static char *mode_option __devinitdata; 70 + static char *mode_option; 71 71 72 72 /* 73 73 * The XFree GLINT driver will (I think to implement hardware cursor ··· 80 80 */ 81 81 static bool lowhsync; 82 82 static bool lowvsync; 83 - static bool noaccel __devinitdata; 83 + static bool noaccel; 84 84 /* mtrr option */ 85 85 #ifdef CONFIG_MTRR 86 - static bool nomtrr __devinitdata; 86 + static bool nomtrr; 87 87 #endif 88 88 89 89 /* ··· 107 107 * Here we define the default structs fb_fix_screeninfo and fb_var_screeninfo 108 108 * if we don't use modedb. 109 109 */ 110 - static struct fb_fix_screeninfo pm2fb_fix __devinitdata = { 110 + static struct fb_fix_screeninfo pm2fb_fix = { 111 111 .id = "", 112 112 .type = FB_TYPE_PACKED_PIXELS, 113 113 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 120 120 /* 121 121 * Default video mode. In case the modedb doesn't work. 122 122 */ 123 - static struct fb_var_screeninfo pm2fb_var __devinitdata = { 123 + static struct fb_var_screeninfo pm2fb_var = { 124 124 /* "640x480, 8 bpp @ 60 Hz */ 125 125 .xres = 640, 126 126 .yres = 480, ··· 1515 1515 * @param pdev PCI device. 1516 1516 * @param id PCI device ID. 1517 1517 */ 1518 - static int __devinit pm2fb_probe(struct pci_dev *pdev, 1519 - const struct pci_device_id *id) 1518 + static int pm2fb_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1520 1519 { 1521 1520 struct pm2fb_par *default_par; 1522 1521 struct fb_info *info; ··· 1726 1727 * 1727 1728 * @param pdev PCI device to clean up. 1728 1729 */ 1729 - static void __devexit pm2fb_remove(struct pci_dev *pdev) 1730 + static void pm2fb_remove(struct pci_dev *pdev) 1730 1731 { 1731 1732 struct fb_info *info = pci_get_drvdata(pdev); 1732 1733 struct fb_fix_screeninfo *fix = &info->fix; ··· 1764 1765 .name = "pm2fb", 1765 1766 .id_table = pm2fb_id_table, 1766 1767 .probe = pm2fb_probe, 1767 - .remove = __devexit_p(pm2fb_remove), 1768 + .remove = pm2fb_remove, 1768 1769 }; 1769 1770 1770 1771 MODULE_DEVICE_TABLE(pci, pm2fb_id_table);
+8 -9
drivers/video/pm3fb.c
··· 56 56 * Driver data 57 57 */ 58 58 static int hwcursor = 1; 59 - static char *mode_option __devinitdata; 60 - static bool noaccel __devinitdata; 59 + static char *mode_option; 60 + static bool noaccel; 61 61 62 62 /* mtrr option */ 63 63 #ifdef CONFIG_MTRR 64 - static bool nomtrr __devinitdata; 64 + static bool nomtrr; 65 65 #endif 66 66 67 67 /* ··· 84 84 * if we don't use modedb. If we do use modedb see pm3fb_init how to use it 85 85 * to get a fb_var_screeninfo. Otherwise define a default var as well. 86 86 */ 87 - static struct fb_fix_screeninfo pm3fb_fix __devinitdata = { 87 + static struct fb_fix_screeninfo pm3fb_fix = { 88 88 .id = "Permedia3", 89 89 .type = FB_TYPE_PACKED_PIXELS, 90 90 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 1229 1229 1230 1230 /* mmio register are already mapped when this function is called */ 1231 1231 /* the pm3fb_fix.smem_start is also set */ 1232 - static unsigned long __devinit pm3fb_size_memory(struct pm3_par *par) 1232 + static unsigned long pm3fb_size_memory(struct pm3_par *par) 1233 1233 { 1234 1234 unsigned long memsize = 0; 1235 1235 unsigned long tempBypass, i, temp1, temp2; ··· 1314 1314 return memsize; 1315 1315 } 1316 1316 1317 - static int __devinit pm3fb_probe(struct pci_dev *dev, 1318 - const struct pci_device_id *ent) 1317 + static int pm3fb_probe(struct pci_dev *dev, const struct pci_device_id *ent) 1319 1318 { 1320 1319 struct fb_info *info; 1321 1320 struct pm3_par *par; ··· 1468 1469 /* 1469 1470 * Cleanup 1470 1471 */ 1471 - static void __devexit pm3fb_remove(struct pci_dev *dev) 1472 + static void pm3fb_remove(struct pci_dev *dev) 1472 1473 { 1473 1474 struct fb_info *info = pci_get_drvdata(dev); 1474 1475 ··· 1506 1507 .name = "pm3fb", 1507 1508 .id_table = pm3fb_id_table, 1508 1509 .probe = pm3fb_probe, 1509 - .remove = __devexit_p(pm3fb_remove), 1510 + .remove = pm3fb_remove, 1510 1511 }; 1511 1512 1512 1513 MODULE_DEVICE_TABLE(pci, pm3fb_id_table);
+3 -3
drivers/video/pmag-ba-fb.c
··· 43 43 }; 44 44 45 45 46 - static struct fb_var_screeninfo pmagbafb_defined __devinitdata = { 46 + static struct fb_var_screeninfo pmagbafb_defined = { 47 47 .xres = 1024, 48 48 .yres = 864, 49 49 .xres_virtual = 1024, ··· 67 67 .vmode = FB_VMODE_NONINTERLACED, 68 68 }; 69 69 70 - static struct fb_fix_screeninfo pmagbafb_fix __devinitdata = { 70 + static struct fb_fix_screeninfo pmagbafb_fix = { 71 71 .id = "PMAG-BA", 72 72 .smem_len = (1024 * 1024), 73 73 .type = FB_TYPE_PACKED_PIXELS, ··· 141 141 } 142 142 143 143 144 - static int __devinit pmagbafb_probe(struct device *dev) 144 + static int pmagbafb_probe(struct device *dev) 145 145 { 146 146 struct tc_dev *tdev = to_tc_dev(dev); 147 147 resource_size_t start, len;
+6 -6
drivers/video/pmagb-b-fb.c
··· 44 44 }; 45 45 46 46 47 - static struct fb_var_screeninfo pmagbbfb_defined __devinitdata = { 47 + static struct fb_var_screeninfo pmagbbfb_defined = { 48 48 .bits_per_pixel = 8, 49 49 .red.length = 8, 50 50 .green.length = 8, ··· 57 57 .vmode = FB_VMODE_NONINTERLACED, 58 58 }; 59 59 60 - static struct fb_fix_screeninfo pmagbbfb_fix __devinitdata = { 60 + static struct fb_fix_screeninfo pmagbbfb_fix = { 61 61 .id = "PMAGB-BA", 62 62 .smem_len = (2048 * 1024), 63 63 .type = FB_TYPE_PACKED_PIXELS, ··· 147 147 /* 148 148 * Set up screen parameters. 149 149 */ 150 - static void __devinit pmagbbfb_screen_setup(struct fb_info *info) 150 + static void pmagbbfb_screen_setup(struct fb_info *info) 151 151 { 152 152 struct pmagbbfb_par *par = info->par; 153 153 ··· 179 179 /* 180 180 * Determine oscillator configuration. 181 181 */ 182 - static void __devinit pmagbbfb_osc_setup(struct fb_info *info) 182 + static void pmagbbfb_osc_setup(struct fb_info *info) 183 183 { 184 - static unsigned int pmagbbfb_freqs[] __devinitdata = { 184 + static unsigned int pmagbbfb_freqs[] = { 185 185 130808, 119843, 104000, 92980, 74370, 72800, 186 186 69197, 66000, 65000, 50350, 36000, 32000, 25175 187 187 }; ··· 246 246 }; 247 247 248 248 249 - static int __devinit pmagbbfb_probe(struct device *dev) 249 + static int pmagbbfb_probe(struct device *dev) 250 250 { 251 251 struct tc_dev *tdev = to_tc_dev(dev); 252 252 resource_size_t start, len;
+2 -2
drivers/video/ps3fb.c
··· 259 259 static int ps3fb_mode; 260 260 module_param(ps3fb_mode, int, 0); 261 261 262 - static char *mode_option __devinitdata; 262 + static char *mode_option; 263 263 264 264 static int ps3fb_cmp_mode(const struct fb_videomode *vmode, 265 265 const struct fb_var_screeninfo *var) ··· 965 965 .accel = FB_ACCEL_NONE, 966 966 }; 967 967 968 - static int __devinit ps3fb_probe(struct ps3_system_bus_device *dev) 968 + static int ps3fb_probe(struct ps3_system_bus_device *dev) 969 969 { 970 970 struct fb_info *info; 971 971 struct ps3fb_par *par;
+14 -14
drivers/video/pvr2fb.c
··· 112 112 enum { PAL_ARGB1555, PAL_RGB565, PAL_ARGB4444, PAL_ARGB8888 }; 113 113 114 114 struct pvr2_params { unsigned int val; char *name; }; 115 - static struct pvr2_params cables[] __devinitdata = { 115 + static struct pvr2_params cables[] = { 116 116 { CT_VGA, "VGA" }, { CT_RGB, "RGB" }, { CT_COMPOSITE, "COMPOSITE" }, 117 117 }; 118 118 119 - static struct pvr2_params outputs[] __devinitdata = { 119 + static struct pvr2_params outputs[] = { 120 120 { VO_PAL, "PAL" }, { VO_NTSC, "NTSC" }, { VO_VGA, "VGA" }, 121 121 }; 122 122 ··· 145 145 146 146 static struct fb_info *fb_info; 147 147 148 - static struct fb_fix_screeninfo pvr2_fix __devinitdata = { 148 + static struct fb_fix_screeninfo pvr2_fix = { 149 149 .id = "NEC PowerVR2", 150 150 .type = FB_TYPE_PACKED_PIXELS, 151 151 .visual = FB_VISUAL_TRUECOLOR, ··· 154 154 .accel = FB_ACCEL_NONE, 155 155 }; 156 156 157 - static struct fb_var_screeninfo pvr2_var __devinitdata = { 157 + static struct fb_var_screeninfo pvr2_var = { 158 158 .xres = 640, 159 159 .yres = 480, 160 160 .xres_virtual = 640, ··· 226 226 .fb_imageblit = cfb_imageblit, 227 227 }; 228 228 229 - static struct fb_videomode pvr2_modedb[] __devinitdata = { 229 + static struct fb_videomode pvr2_modedb[] = { 230 230 /* 231 231 * Broadcast video modes (PAL and NTSC). I'm unfamiliar with 232 232 * PAL-M and PAL-N, but from what I've read both modes parallel PAL and ··· 256 256 #define DEFMODE_VGA 2 257 257 258 258 static int defmode = DEFMODE_NTSC; 259 - static char *mode_option __devinitdata = NULL; 259 + static char *mode_option = NULL; 260 260 261 261 static inline void pvr2fb_set_pal_type(unsigned int type) 262 262 { ··· 763 763 * in for flexibility anyways. Who knows, maybe someone has tv-out on a 764 764 * PCI-based version of these things ;-) 765 765 */ 766 - static int __devinit pvr2fb_common_init(void) 766 + static int pvr2fb_common_init(void) 767 767 { 768 768 struct pvr2fb_par *par = currentpar; 769 769 unsigned long modememused, rev; ··· 922 922 #endif /* CONFIG_SH_DREAMCAST */ 923 923 924 924 #ifdef CONFIG_PCI 925 - static int __devinit pvr2fb_pci_probe(struct pci_dev *pdev, 926 - const struct pci_device_id *ent) 925 + static int pvr2fb_pci_probe(struct pci_dev *pdev, 926 + const struct pci_device_id *ent) 927 927 { 928 928 int ret; 929 929 ··· 953 953 return pvr2fb_common_init(); 954 954 } 955 955 956 - static void __devexit pvr2fb_pci_remove(struct pci_dev *pdev) 956 + static void pvr2fb_pci_remove(struct pci_dev *pdev) 957 957 { 958 958 if (fb_info->screen_base) { 959 959 iounmap(fb_info->screen_base); ··· 967 967 pci_release_regions(pdev); 968 968 } 969 969 970 - static struct pci_device_id pvr2fb_pci_tbl[] __devinitdata = { 970 + static struct pci_device_id pvr2fb_pci_tbl[] = { 971 971 { PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_NEON250, 972 972 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, 973 973 { 0, }, ··· 979 979 .name = "pvr2fb", 980 980 .id_table = pvr2fb_pci_tbl, 981 981 .probe = pvr2fb_pci_probe, 982 - .remove = __devexit_p(pvr2fb_pci_remove), 982 + .remove = pvr2fb_pci_remove, 983 983 }; 984 984 985 985 static int __init pvr2fb_pci_init(void) ··· 993 993 } 994 994 #endif /* CONFIG_PCI */ 995 995 996 - static int __devinit pvr2_get_param(const struct pvr2_params *p, const char *s, 997 - int val, int size) 996 + static int pvr2_get_param(const struct pvr2_params *p, const char *s, int val, 997 + int size) 998 998 { 999 999 int i; 1000 1000
+4 -4
drivers/video/pxa168fb.c
··· 560 560 .fb_imageblit = cfb_imageblit, 561 561 }; 562 562 563 - static int __devinit pxa168fb_init_mode(struct fb_info *info, 563 + static int pxa168fb_init_mode(struct fb_info *info, 564 564 struct pxa168fb_mach_info *mi) 565 565 { 566 566 struct pxa168fb_info *fbi = info->par; ··· 600 600 return ret; 601 601 } 602 602 603 - static int __devinit pxa168fb_probe(struct platform_device *pdev) 603 + static int pxa168fb_probe(struct platform_device *pdev) 604 604 { 605 605 struct pxa168fb_mach_info *mi; 606 606 struct fb_info *info = 0; ··· 783 783 return ret; 784 784 } 785 785 786 - static int __devexit pxa168fb_remove(struct platform_device *pdev) 786 + static int pxa168fb_remove(struct platform_device *pdev) 787 787 { 788 788 struct pxa168fb_info *fbi = platform_get_drvdata(pdev); 789 789 struct fb_info *info; ··· 826 826 .owner = THIS_MODULE, 827 827 }, 828 828 .probe = pxa168fb_probe, 829 - .remove = __devexit_p(pxa168fb_remove), 829 + .remove = pxa168fb_remove, 830 830 }; 831 831 832 832 module_platform_driver(pxa168fb_driver);
+3 -5
drivers/video/pxa3xx-gcu.c
··· 574 574 priv->free = NULL; 575 575 } 576 576 577 - static int __devinit 578 - pxa3xx_gcu_probe(struct platform_device *dev) 577 + static int pxa3xx_gcu_probe(struct platform_device *dev) 579 578 { 580 579 int i, ret, irq; 581 580 struct resource *r; ··· 713 714 return ret; 714 715 } 715 716 716 - static int __devexit 717 - pxa3xx_gcu_remove(struct platform_device *dev) 717 + static int pxa3xx_gcu_remove(struct platform_device *dev) 718 718 { 719 719 struct pxa3xx_gcu_priv *priv = platform_get_drvdata(dev); 720 720 struct resource *r = priv->resource_mem; ··· 735 737 736 738 static struct platform_driver pxa3xx_gcu_driver = { 737 739 .probe = pxa3xx_gcu_probe, 738 - .remove = __devexit_p(pxa3xx_gcu_remove), 740 + .remove = pxa3xx_gcu_remove, 739 741 .driver = { 740 742 .owner = THIS_MODULE, 741 743 .name = DRV_NAME,
+16 -17
drivers/video/pxafb.c
··· 869 869 .fb_set_par = overlayfb_set_par, 870 870 }; 871 871 872 - static void __devinit init_pxafb_overlay(struct pxafb_info *fbi, 873 - struct pxafb_layer *ofb, int id) 872 + static void init_pxafb_overlay(struct pxafb_info *fbi, struct pxafb_layer *ofb, 873 + int id) 874 874 { 875 875 sprintf(ofb->fb.fix.id, "overlay%d", id + 1); 876 876 ··· 903 903 return 0; 904 904 } 905 905 906 - static int __devinit pxafb_overlay_map_video_memory(struct pxafb_info *pxafb, 907 - struct pxafb_layer *ofb) 906 + static int pxafb_overlay_map_video_memory(struct pxafb_info *pxafb, 907 + struct pxafb_layer *ofb) 908 908 { 909 909 /* We assume that user will use at most video_mem_size for overlay fb, 910 910 * anyway, it's useless to use 16bpp main plane and 24bpp overlay ··· 927 927 return 0; 928 928 } 929 929 930 - static void __devinit pxafb_overlay_init(struct pxafb_info *fbi) 930 + static void pxafb_overlay_init(struct pxafb_info *fbi) 931 931 { 932 932 int i, ret; 933 933 ··· 959 959 pr_info("PXA Overlay driver loaded successfully!\n"); 960 960 } 961 961 962 - static void __devexit pxafb_overlay_exit(struct pxafb_info *fbi) 962 + static void pxafb_overlay_exit(struct pxafb_info *fbi) 963 963 { 964 964 int i; 965 965 ··· 1706 1706 }; 1707 1707 #endif 1708 1708 1709 - static int __devinit pxafb_init_video_memory(struct pxafb_info *fbi) 1709 + static int pxafb_init_video_memory(struct pxafb_info *fbi) 1710 1710 { 1711 1711 int size = PAGE_ALIGN(fbi->video_mem_size); 1712 1712 ··· 1789 1789 fbi->video_mem_size = video_mem_size; 1790 1790 } 1791 1791 1792 - static struct pxafb_info * __devinit pxafb_init_fbinfo(struct device *dev) 1792 + static struct pxafb_info *pxafb_init_fbinfo(struct device *dev) 1793 1793 { 1794 1794 struct pxafb_info *fbi; 1795 1795 void *addr; ··· 1853 1853 } 1854 1854 1855 1855 #ifdef CONFIG_FB_PXA_PARAMETERS 1856 - static int __devinit parse_opt_mode(struct device *dev, const char *this_opt) 1856 + static int parse_opt_mode(struct device *dev, const char *this_opt) 1857 1857 { 1858 1858 struct pxafb_mach_info *inf = dev->platform_data; 1859 1859 ··· 1912 1912 return 0; 1913 1913 } 1914 1914 1915 - static int __devinit parse_opt(struct device *dev, char *this_opt) 1915 + static int parse_opt(struct device *dev, char *this_opt) 1916 1916 { 1917 1917 struct pxafb_mach_info *inf = dev->platform_data; 1918 1918 struct pxafb_mode_info *mode = &inf->modes[0]; ··· 2012 2012 return 0; 2013 2013 } 2014 2014 2015 - static int __devinit pxafb_parse_options(struct device *dev, char *options) 2015 + static int pxafb_parse_options(struct device *dev, char *options) 2016 2016 { 2017 2017 char *this_opt; 2018 2018 int ret; ··· 2031 2031 return 0; 2032 2032 } 2033 2033 2034 - static char g_options[256] __devinitdata = ""; 2034 + static char g_options[256] = ""; 2035 2035 2036 2036 #ifndef MODULE 2037 2037 static int __init pxafb_setup_options(void) ··· 2061 2061 #ifdef DEBUG_VAR 2062 2062 /* Check for various illegal bit-combinations. Currently only 2063 2063 * a warning is given. */ 2064 - static void __devinit pxafb_check_options(struct device *dev, 2065 - struct pxafb_mach_info *inf) 2064 + static void pxafb_check_options(struct device *dev, struct pxafb_mach_info *inf) 2066 2065 { 2067 2066 if (inf->lcd_conn) 2068 2067 return; ··· 2093 2094 #define pxafb_check_options(...) do {} while (0) 2094 2095 #endif 2095 2096 2096 - static int __devinit pxafb_probe(struct platform_device *dev) 2097 + static int pxafb_probe(struct platform_device *dev) 2097 2098 { 2098 2099 struct pxafb_info *fbi; 2099 2100 struct pxafb_mach_info *inf; ··· 2262 2263 return ret; 2263 2264 } 2264 2265 2265 - static int __devexit pxafb_remove(struct platform_device *dev) 2266 + static int pxafb_remove(struct platform_device *dev) 2266 2267 { 2267 2268 struct pxafb_info *fbi = platform_get_drvdata(dev); 2268 2269 struct resource *r; ··· 2303 2304 2304 2305 static struct platform_driver pxafb_driver = { 2305 2306 .probe = pxafb_probe, 2306 - .remove = __devexit_p(pxafb_remove), 2307 + .remove = pxafb_remove, 2307 2308 .driver = { 2308 2309 .owner = THIS_MODULE, 2309 2310 .name = "pxa2xx-fb",
+3 -3
drivers/video/q40fb.c
··· 27 27 28 28 #define Q40_PHYS_SCREEN_ADDR 0xFE800000 29 29 30 - static struct fb_fix_screeninfo q40fb_fix __devinitdata = { 30 + static struct fb_fix_screeninfo q40fb_fix = { 31 31 .id = "Q40", 32 32 .smem_len = 1024*1024, 33 33 .type = FB_TYPE_PACKED_PIXELS, ··· 36 36 .accel = FB_ACCEL_NONE, 37 37 }; 38 38 39 - static struct fb_var_screeninfo q40fb_var __devinitdata = { 39 + static struct fb_var_screeninfo q40fb_var = { 40 40 .xres = 1024, 41 41 .yres = 512, 42 42 .xres_virtual = 1024, ··· 83 83 .fb_imageblit = cfb_imageblit, 84 84 }; 85 85 86 - static int __devinit q40fb_probe(struct platform_device *dev) 86 + static int q40fb_probe(struct platform_device *dev) 87 87 { 88 88 struct fb_info *info; 89 89
+22 -23
drivers/video/riva/fbdev.c
··· 205 205 * ------------------------------------------------------------------------- */ 206 206 207 207 /* command line data, set in rivafb_setup() */ 208 - static int flatpanel __devinitdata = -1; /* Autodetect later */ 209 - static int forceCRTC __devinitdata = -1; 210 - static bool noaccel __devinitdata = 0; 208 + static int flatpanel = -1; /* Autodetect later */ 209 + static int forceCRTC = -1; 210 + static bool noaccel = 0; 211 211 #ifdef CONFIG_MTRR 212 - static bool nomtrr __devinitdata = 0; 212 + static bool nomtrr = 0; 213 213 #endif 214 214 #ifdef CONFIG_PMAC_BACKLIGHT 215 - static int backlight __devinitdata = 1; 215 + static int backlight = 1; 216 216 #else 217 - static int backlight __devinitdata = 0; 217 + static int backlight = 0; 218 218 #endif 219 219 220 - static char *mode_option __devinitdata = NULL; 220 + static char *mode_option = NULL; 221 221 static bool strictmode = 0; 222 222 223 - static struct fb_fix_screeninfo __devinitdata rivafb_fix = { 223 + static struct fb_fix_screeninfo rivafb_fix = { 224 224 .type = FB_TYPE_PACKED_PIXELS, 225 225 .xpanstep = 1, 226 226 .ypanstep = 1, 227 227 }; 228 228 229 - static struct fb_var_screeninfo __devinitdata rivafb_default_var = { 229 + static struct fb_var_screeninfo rivafb_default_var = { 230 230 .xres = 640, 231 231 .yres = 480, 232 232 .xres_virtual = 640, ··· 1709 1709 .fb_sync = rivafb_sync, 1710 1710 }; 1711 1711 1712 - static int __devinit riva_set_fbinfo(struct fb_info *info) 1712 + static int riva_set_fbinfo(struct fb_info *info) 1713 1713 { 1714 1714 unsigned int cmap_len; 1715 1715 struct riva_par *par = info->par; ··· 1747 1747 } 1748 1748 1749 1749 #ifdef CONFIG_PPC_OF 1750 - static int __devinit riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) 1750 + static int riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) 1751 1751 { 1752 1752 struct riva_par *par = info->par; 1753 1753 struct device_node *dp; ··· 1780 1780 #endif /* CONFIG_PPC_OF */ 1781 1781 1782 1782 #if defined(CONFIG_FB_RIVA_I2C) && !defined(CONFIG_PPC_OF) 1783 - static int __devinit riva_get_EDID_i2c(struct fb_info *info) 1783 + static int riva_get_EDID_i2c(struct fb_info *info) 1784 1784 { 1785 1785 struct riva_par *par = info->par; 1786 1786 struct fb_var_screeninfo var; ··· 1803 1803 } 1804 1804 #endif /* CONFIG_FB_RIVA_I2C */ 1805 1805 1806 - static void __devinit riva_update_default_var(struct fb_var_screeninfo *var, 1807 - struct fb_info *info) 1806 + static void riva_update_default_var(struct fb_var_screeninfo *var, 1807 + struct fb_info *info) 1808 1808 { 1809 1809 struct fb_monspecs *specs = &info->monspecs; 1810 1810 struct fb_videomode modedb; ··· 1836 1836 } 1837 1837 1838 1838 1839 - static void __devinit riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) 1839 + static void riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) 1840 1840 { 1841 1841 NVTRACE_ENTER(); 1842 1842 #ifdef CONFIG_PPC_OF ··· 1850 1850 } 1851 1851 1852 1852 1853 - static void __devinit riva_get_edidinfo(struct fb_info *info) 1853 + static void riva_get_edidinfo(struct fb_info *info) 1854 1854 { 1855 1855 struct fb_var_screeninfo *var = &rivafb_default_var; 1856 1856 struct riva_par *par = info->par; ··· 1871 1871 * 1872 1872 * ------------------------------------------------------------------------- */ 1873 1873 1874 - static u32 __devinit riva_get_arch(struct pci_dev *pd) 1874 + static u32 riva_get_arch(struct pci_dev *pd) 1875 1875 { 1876 1876 u32 arch = 0; 1877 1877 ··· 1909 1909 return arch; 1910 1910 } 1911 1911 1912 - static int __devinit rivafb_probe(struct pci_dev *pd, 1913 - const struct pci_device_id *ent) 1912 + static int rivafb_probe(struct pci_dev *pd, const struct pci_device_id *ent) 1914 1913 { 1915 1914 struct riva_par *default_par; 1916 1915 struct fb_info *info; ··· 2104 2105 return ret; 2105 2106 } 2106 2107 2107 - static void __devexit rivafb_remove(struct pci_dev *pd) 2108 + static void rivafb_remove(struct pci_dev *pd) 2108 2109 { 2109 2110 struct fb_info *info = pci_get_drvdata(pd); 2110 2111 struct riva_par *par = info->par; ··· 2144 2145 * ------------------------------------------------------------------------- */ 2145 2146 2146 2147 #ifndef MODULE 2147 - static int __devinit rivafb_setup(char *options) 2148 + static int rivafb_setup(char *options) 2148 2149 { 2149 2150 char *this_opt; 2150 2151 ··· 2185 2186 .name = "rivafb", 2186 2187 .id_table = rivafb_pci_tbl, 2187 2188 .probe = rivafb_probe, 2188 - .remove = __devexit_p(rivafb_remove), 2189 + .remove = rivafb_remove, 2189 2190 }; 2190 2191 2191 2192 ··· 2196 2197 * 2197 2198 * ------------------------------------------------------------------------- */ 2198 2199 2199 - static int __devinit rivafb_init(void) 2200 + static int rivafb_init(void) 2200 2201 { 2201 2202 #ifndef MODULE 2202 2203 char *option = NULL;
+4 -5
drivers/video/riva/rivafb-i2c.c
··· 86 86 return val; 87 87 } 88 88 89 - static int __devinit riva_setup_i2c_bus(struct riva_i2c_chan *chan, 90 - const char *name, 91 - unsigned int i2c_class) 89 + static int riva_setup_i2c_bus(struct riva_i2c_chan *chan, const char *name, 90 + unsigned int i2c_class) 92 91 { 93 92 int rc; 94 93 ··· 123 124 return rc; 124 125 } 125 126 126 - void __devinit riva_create_i2c_busses(struct riva_par *par) 127 + void riva_create_i2c_busses(struct riva_par *par) 127 128 { 128 129 par->chan[0].par = par; 129 130 par->chan[1].par = par; ··· 149 150 } 150 151 } 151 152 152 - int __devinit riva_probe_i2c_connector(struct riva_par *par, int conn, u8 **out_edid) 153 + int riva_probe_i2c_connector(struct riva_par *par, int conn, u8 **out_edid) 153 154 { 154 155 u8 *edid = NULL; 155 156
+4 -6
drivers/video/s1d13xxxfb.c
··· 84 84 /* 85 85 * here we define the default struct fb_fix_screeninfo 86 86 */ 87 - static struct fb_fix_screeninfo __devinitdata s1d13xxxfb_fix = { 87 + static struct fb_fix_screeninfo s1d13xxxfb_fix = { 88 88 .id = S1D_FBID, 89 89 .type = FB_TYPE_PACKED_PIXELS, 90 90 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 622 622 .fb_imageblit = cfb_imageblit, 623 623 }; 624 624 625 - static int s1d13xxxfb_width_tab[2][4] __devinitdata = { 625 + static int s1d13xxxfb_width_tab[2][4] = { 626 626 {4, 8, 16, -1}, 627 627 {9, 12, 18, -1}, 628 628 }; ··· 642 642 * Note: some of the hardcoded values here might need some love to 643 643 * work on various chips, and might need to no longer be hardcoded. 644 644 */ 645 - static void __devinit 646 - s1d13xxxfb_fetch_hw_state(struct fb_info *info) 645 + static void s1d13xxxfb_fetch_hw_state(struct fb_info *info) 647 646 { 648 647 struct fb_var_screeninfo *var = &info->var; 649 648 struct fb_fix_screeninfo *fix = &info->fix; ··· 763 764 return 0; 764 765 } 765 766 766 - static int __devinit 767 - s1d13xxxfb_probe(struct platform_device *pdev) 767 + static int s1d13xxxfb_probe(struct platform_device *pdev) 768 768 { 769 769 struct s1d13xxxfb_par *default_par; 770 770 struct fb_info *info;
+7 -8
drivers/video/s3c-fb.c
··· 1081 1081 * 1082 1082 * Allocate memory for the given framebuffer. 1083 1083 */ 1084 - static int __devinit s3c_fb_alloc_memory(struct s3c_fb *sfb, 1085 - struct s3c_fb_win *win) 1084 + static int s3c_fb_alloc_memory(struct s3c_fb *sfb, struct s3c_fb_win *win) 1086 1085 { 1087 1086 struct s3c_fb_pd_win *windata = win->windata; 1088 1087 unsigned int real_size, virt_size, size; ··· 1171 1172 * Allocate and do the basic initialisation for one of the hardware's graphics 1172 1173 * windows. 1173 1174 */ 1174 - static int __devinit s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no, 1175 - struct s3c_fb_win_variant *variant, 1176 - struct s3c_fb_win **res) 1175 + static int s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no, 1176 + struct s3c_fb_win_variant *variant, 1177 + struct s3c_fb_win **res) 1177 1178 { 1178 1179 struct fb_var_screeninfo *var; 1179 1180 struct fb_videomode initmode; ··· 1359 1360 } 1360 1361 } 1361 1362 1362 - static int __devinit s3c_fb_probe(struct platform_device *pdev) 1363 + static int s3c_fb_probe(struct platform_device *pdev) 1363 1364 { 1364 1365 const struct platform_device_id *platid; 1365 1366 struct s3c_fb_driverdata *fbdrv; ··· 1520 1521 * Shutdown and then release all the resources that the driver allocated 1521 1522 * on initialisation. 1522 1523 */ 1523 - static int __devexit s3c_fb_remove(struct platform_device *pdev) 1524 + static int s3c_fb_remove(struct platform_device *pdev) 1524 1525 { 1525 1526 struct s3c_fb *sfb = platform_get_drvdata(pdev); 1526 1527 int win; ··· 2034 2035 2035 2036 static struct platform_driver s3c_fb_driver = { 2036 2037 .probe = s3c_fb_probe, 2037 - .remove = __devexit_p(s3c_fb_remove), 2038 + .remove = s3c_fb_remove, 2038 2039 .id_table = s3c_fb_driver_ids, 2039 2040 .driver = { 2040 2041 .name = "s3c-fb",
+8 -8
drivers/video/s3c2410fb.c
··· 637 637 * cache. Once this area is remapped, all virtual memory 638 638 * access to the video memory should occur at the new region. 639 639 */ 640 - static int __devinit s3c2410fb_map_video_memory(struct fb_info *info) 640 + static int s3c2410fb_map_video_memory(struct fb_info *info) 641 641 { 642 642 struct s3c2410fb_info *fbi = info->par; 643 643 dma_addr_t map_dma; ··· 819 819 820 820 static const char driver_name[] = "s3c2410fb"; 821 821 822 - static int __devinit s3c24xxfb_probe(struct platform_device *pdev, 823 - enum s3c_drv_type drv_type) 822 + static int s3c24xxfb_probe(struct platform_device *pdev, 823 + enum s3c_drv_type drv_type) 824 824 { 825 825 struct s3c2410fb_info *info; 826 826 struct s3c2410fb_display *display; ··· 1010 1010 return ret; 1011 1011 } 1012 1012 1013 - static int __devinit s3c2410fb_probe(struct platform_device *pdev) 1013 + static int s3c2410fb_probe(struct platform_device *pdev) 1014 1014 { 1015 1015 return s3c24xxfb_probe(pdev, DRV_S3C2410); 1016 1016 } 1017 1017 1018 - static int __devinit s3c2412fb_probe(struct platform_device *pdev) 1018 + static int s3c2412fb_probe(struct platform_device *pdev) 1019 1019 { 1020 1020 return s3c24xxfb_probe(pdev, DRV_S3C2412); 1021 1021 } ··· 1024 1024 /* 1025 1025 * Cleanup 1026 1026 */ 1027 - static int __devexit s3c2410fb_remove(struct platform_device *pdev) 1027 + static int s3c2410fb_remove(struct platform_device *pdev) 1028 1028 { 1029 1029 struct fb_info *fbinfo = platform_get_drvdata(pdev); 1030 1030 struct s3c2410fb_info *info = fbinfo->par; ··· 1101 1101 1102 1102 static struct platform_driver s3c2410fb_driver = { 1103 1103 .probe = s3c2410fb_probe, 1104 - .remove = __devexit_p(s3c2410fb_remove), 1104 + .remove = s3c2410fb_remove, 1105 1105 .suspend = s3c2410fb_suspend, 1106 1106 .resume = s3c2410fb_resume, 1107 1107 .driver = { ··· 1112 1112 1113 1113 static struct platform_driver s3c2412fb_driver = { 1114 1114 .probe = s3c2412fb_probe, 1115 - .remove = __devexit_p(s3c2410fb_remove), 1115 + .remove = s3c2410fb_remove, 1116 1116 .suspend = s3c2410fb_suspend, 1117 1117 .resume = s3c2410fb_resume, 1118 1118 .driver = {
+8 -8
drivers/video/s3fb.c
··· 153 153 /* Module parameters */ 154 154 155 155 156 - static char *mode_option __devinitdata; 156 + static char *mode_option; 157 157 158 158 #ifdef CONFIG_MTRR 159 - static int mtrr __devinitdata = 1; 159 + static int mtrr = 1; 160 160 #endif 161 161 162 162 static int fasttext = 1; ··· 255 255 return !!(s3fb_ddc_read(par) & DDC_SDA_IN); 256 256 } 257 257 258 - static int __devinit s3fb_setup_ddc_bus(struct fb_info *info) 258 + static int s3fb_setup_ddc_bus(struct fb_info *info) 259 259 { 260 260 struct s3fb_info *par = info->par; 261 261 ··· 1066 1066 1067 1067 /* ------------------------------------------------------------------------- */ 1068 1068 1069 - static int __devinit s3_identification(struct s3fb_info *par) 1069 + static int s3_identification(struct s3fb_info *par) 1070 1070 { 1071 1071 int chip = par->chip; 1072 1072 ··· 1122 1122 1123 1123 /* PCI probe */ 1124 1124 1125 - static int __devinit s3_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 1125 + static int s3_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 1126 1126 { 1127 1127 struct pci_bus_region bus_reg; 1128 1128 struct resource vga_res; ··· 1403 1403 1404 1404 /* PCI remove */ 1405 1405 1406 - static void __devexit s3_pci_remove(struct pci_dev *dev) 1406 + static void s3_pci_remove(struct pci_dev *dev) 1407 1407 { 1408 1408 struct fb_info *info = pci_get_drvdata(dev); 1409 1409 struct s3fb_info __maybe_unused *par = info->par; ··· 1509 1509 1510 1510 /* List of boards that we are trying to support */ 1511 1511 1512 - static struct pci_device_id s3_devices[] __devinitdata = { 1512 + static struct pci_device_id s3_devices[] = { 1513 1513 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8810), .driver_data = CHIP_XXX_TRIO}, 1514 1514 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8811), .driver_data = CHIP_XXX_TRIO}, 1515 1515 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8812), .driver_data = CHIP_M65_AURORA64VP}, ··· 1537 1537 .name = "s3fb", 1538 1538 .id_table = s3_devices, 1539 1539 .probe = s3_pci_probe, 1540 - .remove = __devexit_p(s3_pci_remove), 1540 + .remove = s3_pci_remove, 1541 1541 .suspend = s3_pci_suspend, 1542 1542 .resume = s3_pci_resume, 1543 1543 };
+4 -4
drivers/video/sa1100fb.c
··· 1090 1090 * cache. Once this area is remapped, all virtual memory 1091 1091 * access to the video memory should occur at the new region. 1092 1092 */ 1093 - static int __devinit sa1100fb_map_video_memory(struct sa1100fb_info *fbi) 1093 + static int sa1100fb_map_video_memory(struct sa1100fb_info *fbi) 1094 1094 { 1095 1095 /* 1096 1096 * We reserve one page for the palette, plus the size ··· 1116 1116 } 1117 1117 1118 1118 /* Fake monspecs to fill in fbinfo structure */ 1119 - static struct fb_monspecs monspecs __devinitdata = { 1119 + static struct fb_monspecs monspecs = { 1120 1120 .hfmin = 30000, 1121 1121 .hfmax = 70000, 1122 1122 .vfmin = 50, ··· 1124 1124 }; 1125 1125 1126 1126 1127 - static struct sa1100fb_info * __devinit sa1100fb_init_fbinfo(struct device *dev) 1127 + static struct sa1100fb_info *sa1100fb_init_fbinfo(struct device *dev) 1128 1128 { 1129 1129 struct sa1100fb_mach_info *inf = dev->platform_data; 1130 1130 struct sa1100fb_info *fbi; ··· 1205 1205 return fbi; 1206 1206 } 1207 1207 1208 - static int __devinit sa1100fb_probe(struct platform_device *pdev) 1208 + static int sa1100fb_probe(struct platform_device *pdev) 1209 1209 { 1210 1210 struct sa1100fb_info *fbi; 1211 1211 struct resource *res;
+10 -13
drivers/video/savage/savagefb_driver.c
··· 69 69 /* --------------------------------------------------------------------- */ 70 70 71 71 72 - static char *mode_option __devinitdata = NULL; 72 + static char *mode_option = NULL; 73 73 74 74 #ifdef MODULE 75 75 ··· 1664 1664 1665 1665 /* --------------------------------------------------------------------- */ 1666 1666 1667 - static struct fb_var_screeninfo __devinitdata savagefb_var800x600x8 = { 1667 + static struct fb_var_screeninfo savagefb_var800x600x8 = { 1668 1668 .accel_flags = FB_ACCELF_TEXT, 1669 1669 .xres = 800, 1670 1670 .yres = 600, ··· 1715 1715 } 1716 1716 1717 1717 1718 - static int __devinit savage_map_mmio(struct fb_info *info) 1718 + static int savage_map_mmio(struct fb_info *info) 1719 1719 { 1720 1720 struct savagefb_par *par = info->par; 1721 1721 DBG("savage_map_mmio"); ··· 1761 1761 } 1762 1762 } 1763 1763 1764 - static int __devinit savage_map_video(struct fb_info *info, 1765 - int video_len) 1764 + static int savage_map_video(struct fb_info *info, int video_len) 1766 1765 { 1767 1766 struct savagefb_par *par = info->par; 1768 1767 int resource; ··· 2051 2052 return videoRambytes; 2052 2053 } 2053 2054 2054 - static int __devinit savage_init_fb_info(struct fb_info *info, 2055 - struct pci_dev *dev, 2056 - const struct pci_device_id *id) 2055 + static int savage_init_fb_info(struct fb_info *info, struct pci_dev *dev, 2056 + const struct pci_device_id *id) 2057 2057 { 2058 2058 struct savagefb_par *par = info->par; 2059 2059 int err = 0; ··· 2176 2178 2177 2179 /* --------------------------------------------------------------------- */ 2178 2180 2179 - static int __devinit savagefb_probe(struct pci_dev* dev, 2180 - const struct pci_device_id* id) 2181 + static int savagefb_probe(struct pci_dev *dev, const struct pci_device_id *id) 2181 2182 { 2182 2183 struct fb_info *info; 2183 2184 struct savagefb_par *par; ··· 2337 2340 return err; 2338 2341 } 2339 2342 2340 - static void __devexit savagefb_remove(struct pci_dev *dev) 2343 + static void savagefb_remove(struct pci_dev *dev) 2341 2344 { 2342 2345 struct fb_info *info = pci_get_drvdata(dev); 2343 2346 ··· 2446 2449 } 2447 2450 2448 2451 2449 - static struct pci_device_id savagefb_devices[] __devinitdata = { 2452 + static struct pci_device_id savagefb_devices[] = { 2450 2453 {PCI_VENDOR_ID_S3, PCI_CHIP_SUPSAV_MX128, 2451 2454 PCI_ANY_ID, PCI_ANY_ID, 0, 0, FB_ACCEL_SUPERSAVAGE}, 2452 2455 ··· 2527 2530 .probe = savagefb_probe, 2528 2531 .suspend = savagefb_suspend, 2529 2532 .resume = savagefb_resume, 2530 - .remove = __devexit_p(savagefb_remove) 2533 + .remove = savagefb_remove, 2531 2534 }; 2532 2535 2533 2536 /* **************************** exit-time only **************************** */
+6 -6
drivers/video/sgivwfb.c
··· 47 47 48 48 static int flatpanel_id = -1; 49 49 50 - static struct fb_fix_screeninfo sgivwfb_fix __devinitdata = { 50 + static struct fb_fix_screeninfo sgivwfb_fix = { 51 51 .id = "SGI Vis WS FB", 52 52 .type = FB_TYPE_PACKED_PIXELS, 53 53 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 57 57 .line_length = 640, 58 58 }; 59 59 60 - static struct fb_var_screeninfo sgivwfb_var __devinitdata = { 60 + static struct fb_var_screeninfo sgivwfb_var = { 61 61 /* 640x480, 8 bpp */ 62 62 .xres = 640, 63 63 .yres = 480, ··· 79 79 .vmode = FB_VMODE_NONINTERLACED 80 80 }; 81 81 82 - static struct fb_var_screeninfo sgivwfb_var1600sw __devinitdata = { 82 + static struct fb_var_screeninfo sgivwfb_var1600sw = { 83 83 /* 1600x1024, 8 bpp */ 84 84 .xres = 1600, 85 85 .yres = 1024, ··· 745 745 /* 746 746 * Initialisation 747 747 */ 748 - static int __devinit sgivwfb_probe(struct platform_device *dev) 748 + static int sgivwfb_probe(struct platform_device *dev) 749 749 { 750 750 struct sgivw_par *par; 751 751 struct fb_info *info; ··· 825 825 return -ENXIO; 826 826 } 827 827 828 - static int __devexit sgivwfb_remove(struct platform_device *dev) 828 + static int sgivwfb_remove(struct platform_device *dev) 829 829 { 830 830 struct fb_info *info = platform_get_drvdata(dev); 831 831 ··· 845 845 846 846 static struct platform_driver sgivwfb_driver = { 847 847 .probe = sgivwfb_probe, 848 - .remove = __devexit_p(sgivwfb_remove), 848 + .remove = sgivwfb_remove, 849 849 .driver = { 850 850 .name = "sgivwfb", 851 851 },
+3 -3
drivers/video/sh7760fb.c
··· 431 431 return 0; 432 432 } 433 433 434 - static int __devinit sh7760fb_probe(struct platform_device *pdev) 434 + static int sh7760fb_probe(struct platform_device *pdev) 435 435 { 436 436 struct fb_info *info; 437 437 struct resource *res; ··· 557 557 return ret; 558 558 } 559 559 560 - static int __devexit sh7760fb_remove(struct platform_device *dev) 560 + static int sh7760fb_remove(struct platform_device *dev) 561 561 { 562 562 struct fb_info *info = platform_get_drvdata(dev); 563 563 struct sh7760fb_par *par = info->par; ··· 582 582 .owner = THIS_MODULE, 583 583 }, 584 584 .probe = sh7760fb_probe, 585 - .remove = __devexit_p(sh7760fb_remove), 585 + .remove = sh7760fb_remove, 586 586 }; 587 587 588 588 module_platform_driver(sh7760_lcdc_driver);
+2 -2
drivers/video/sh_mipi_dsi.c
··· 533 533 return ret; 534 534 } 535 535 536 - static int __devexit sh_mipi_remove(struct platform_device *pdev) 536 + static int sh_mipi_remove(struct platform_device *pdev) 537 537 { 538 538 struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 539 539 struct resource *res2 = platform_get_resource(pdev, IORESOURCE_MEM, 1); ··· 574 574 } 575 575 576 576 static struct platform_driver sh_mipi_driver = { 577 - .remove = __devexit_p(sh_mipi_remove), 577 + .remove = sh_mipi_remove, 578 578 .shutdown = sh_mipi_shutdown, 579 579 .driver = { 580 580 .name = "sh-mipi-dsi",
+9 -9
drivers/video/sh_mobile_lcdcfb.c
··· 1649 1649 unregister_framebuffer(ovl->info); 1650 1650 } 1651 1651 1652 - static int __devinit 1652 + static int 1653 1653 sh_mobile_lcdc_overlay_fb_register(struct sh_mobile_lcdc_overlay *ovl) 1654 1654 { 1655 1655 struct sh_mobile_lcdc_priv *lcdc = ovl->channel->lcdc; ··· 1688 1688 framebuffer_release(info); 1689 1689 } 1690 1690 1691 - static int __devinit 1691 + static int 1692 1692 sh_mobile_lcdc_overlay_fb_init(struct sh_mobile_lcdc_overlay *ovl) 1693 1693 { 1694 1694 struct sh_mobile_lcdc_priv *priv = ovl->channel->lcdc; ··· 2137 2137 unregister_framebuffer(ch->info); 2138 2138 } 2139 2139 2140 - static int __devinit 2140 + static int 2141 2141 sh_mobile_lcdc_channel_fb_register(struct sh_mobile_lcdc_chan *ch) 2142 2142 { 2143 2143 struct fb_info *info = ch->info; ··· 2185 2185 framebuffer_release(info); 2186 2186 } 2187 2187 2188 - static int __devinit 2188 + static int 2189 2189 sh_mobile_lcdc_channel_fb_init(struct sh_mobile_lcdc_chan *ch, 2190 2190 const struct fb_videomode *modes, 2191 2191 unsigned int num_modes) ··· 2417 2417 * Probe/remove and driver init/exit 2418 2418 */ 2419 2419 2420 - static const struct fb_videomode default_720p __devinitconst = { 2420 + static const struct fb_videomode default_720p = { 2421 2421 .name = "HDMI 720p", 2422 2422 .xres = 1280, 2423 2423 .yres = 720, ··· 2496 2496 return 0; 2497 2497 } 2498 2498 2499 - static int __devinit sh_mobile_lcdc_check_interface(struct sh_mobile_lcdc_chan *ch) 2499 + static int sh_mobile_lcdc_check_interface(struct sh_mobile_lcdc_chan *ch) 2500 2500 { 2501 2501 int interface_type = ch->cfg->interface_type; 2502 2502 ··· 2536 2536 return 0; 2537 2537 } 2538 2538 2539 - static int __devinit 2539 + static int 2540 2540 sh_mobile_lcdc_overlay_init(struct sh_mobile_lcdc_overlay *ovl) 2541 2541 { 2542 2542 const struct sh_mobile_lcdc_format_info *format; ··· 2591 2591 return 0; 2592 2592 } 2593 2593 2594 - static int __devinit 2594 + static int 2595 2595 sh_mobile_lcdc_channel_init(struct sh_mobile_lcdc_chan *ch) 2596 2596 { 2597 2597 const struct sh_mobile_lcdc_format_info *format; ··· 2695 2695 return sh_mobile_lcdc_channel_fb_init(ch, mode, num_modes); 2696 2696 } 2697 2697 2698 - static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev) 2698 + static int sh_mobile_lcdc_probe(struct platform_device *pdev) 2699 2699 { 2700 2700 struct sh_mobile_lcdc_info *pdata = pdev->dev.platform_data; 2701 2701 struct sh_mobile_lcdc_priv *priv;
+1 -1
drivers/video/sh_mobile_meram.c
··· 620 620 * Probe/remove and driver init/exit 621 621 */ 622 622 623 - static int __devinit sh_mobile_meram_probe(struct platform_device *pdev) 623 + static int sh_mobile_meram_probe(struct platform_device *pdev) 624 624 { 625 625 struct sh_mobile_meram_priv *priv; 626 626 struct sh_mobile_meram_info *pdata = pdev->dev.platform_data;
+52 -88
drivers/video/sis/sis_main.c
··· 106 106 107 107 /* ------------- Parameter parsing -------------- */ 108 108 109 - static void __devinit 110 - sisfb_search_vesamode(unsigned int vesamode, bool quiet) 109 + static void sisfb_search_vesamode(unsigned int vesamode, bool quiet) 111 110 { 112 111 int i = 0, j = 0; 113 112 ··· 145 146 printk(KERN_ERR "sisfb: Invalid VESA mode 0x%x'\n", vesamode); 146 147 } 147 148 148 - static void __devinit 149 - sisfb_search_mode(char *name, bool quiet) 149 + static void sisfb_search_mode(char *name, bool quiet) 150 150 { 151 151 unsigned int j = 0, xres = 0, yres = 0, depth = 0, rate = 0; 152 152 int i = 0; ··· 223 225 } 224 226 225 227 #ifndef MODULE 226 - static void __devinit 227 - sisfb_get_vga_mode_from_kernel(void) 228 + static void sisfb_get_vga_mode_from_kernel(void) 228 229 { 229 230 #ifdef CONFIG_X86 230 231 char mymode[32]; ··· 342 345 343 346 /* ----------- Various detection routines ----------- */ 344 347 345 - static void __devinit 346 - sisfb_detect_custom_timing(struct sis_video_info *ivideo) 348 + static void sisfb_detect_custom_timing(struct sis_video_info *ivideo) 347 349 { 348 350 unsigned char *biosver = NULL; 349 351 unsigned char *biosdate = NULL; ··· 399 403 } while(mycustomttable[i].chipID); 400 404 } 401 405 402 - static bool __devinit 403 - sisfb_interpret_edid(struct sisfb_monitor *monitor, u8 *buffer) 406 + static bool sisfb_interpret_edid(struct sisfb_monitor *monitor, u8 *buffer) 404 407 { 405 408 int i, j, xres, yres, refresh, index; 406 409 u32 emodes; ··· 500 505 return monitor->datavalid; 501 506 } 502 507 503 - static void __devinit 504 - sisfb_handle_ddc(struct sis_video_info *ivideo, struct sisfb_monitor *monitor, int crtno) 508 + static void sisfb_handle_ddc(struct sis_video_info *ivideo, 509 + struct sisfb_monitor *monitor, int crtno) 505 510 { 506 511 unsigned short temp, i, realcrtno = crtno; 507 512 unsigned char buffer[256]; ··· 1893 1898 1894 1899 /* ---------------- Chip generation dependent routines ---------------- */ 1895 1900 1896 - static struct pci_dev * __devinit 1897 - sisfb_get_northbridge(int basechipid) 1901 + static struct pci_dev *sisfb_get_northbridge(int basechipid) 1898 1902 { 1899 1903 struct pci_dev *pdev = NULL; 1900 1904 int nbridgenum, nbridgeidx, i; ··· 1932 1938 return pdev; 1933 1939 } 1934 1940 1935 - static int __devinit 1936 - sisfb_get_dram_size(struct sis_video_info *ivideo) 1941 + static int sisfb_get_dram_size(struct sis_video_info *ivideo) 1937 1942 { 1938 1943 #if defined(CONFIG_FB_SIS_300) || defined(CONFIG_FB_SIS_315) 1939 1944 u8 reg; ··· 2031 2038 2032 2039 /* -------------- video bridge device detection --------------- */ 2033 2040 2034 - static void __devinit 2035 - sisfb_detect_VB_connect(struct sis_video_info *ivideo) 2041 + static void sisfb_detect_VB_connect(struct sis_video_info *ivideo) 2036 2042 { 2037 2043 u8 cr32, temp; 2038 2044 ··· 2156 2164 2157 2165 /* ------------------ Sensing routines ------------------ */ 2158 2166 2159 - static bool __devinit 2160 - sisfb_test_DDC1(struct sis_video_info *ivideo) 2167 + static bool sisfb_test_DDC1(struct sis_video_info *ivideo) 2161 2168 { 2162 2169 unsigned short old; 2163 2170 int count = 48; ··· 2168 2177 return (count != -1); 2169 2178 } 2170 2179 2171 - static void __devinit 2172 - sisfb_sense_crt1(struct sis_video_info *ivideo) 2180 + static void sisfb_sense_crt1(struct sis_video_info *ivideo) 2173 2181 { 2174 2182 bool mustwait = false; 2175 2183 u8 sr1F, cr17; ··· 2249 2259 } 2250 2260 2251 2261 /* Determine and detect attached devices on SiS30x */ 2252 - static void __devinit 2253 - SiS_SenseLCD(struct sis_video_info *ivideo) 2262 + static void SiS_SenseLCD(struct sis_video_info *ivideo) 2254 2263 { 2255 2264 unsigned char buffer[256]; 2256 2265 unsigned short temp, realcrtno, i; ··· 2336 2347 ivideo->SiS_Pr.PanelSelfDetected = true; 2337 2348 } 2338 2349 2339 - static int __devinit 2340 - SISDoSense(struct sis_video_info *ivideo, u16 type, u16 test) 2350 + static int SISDoSense(struct sis_video_info *ivideo, u16 type, u16 test) 2341 2351 { 2342 2352 int temp, mytest, result, i, j; 2343 2353 ··· 2365 2377 return result; 2366 2378 } 2367 2379 2368 - static void __devinit 2369 - SiS_Sense30x(struct sis_video_info *ivideo) 2380 + static void SiS_Sense30x(struct sis_video_info *ivideo) 2370 2381 { 2371 2382 u8 backupP4_0d,backupP2_00,backupP2_4d,backupSR_1e,biosflag=0; 2372 2383 u16 svhs=0, svhs_c=0; ··· 2505 2518 } 2506 2519 2507 2520 /* Determine and detect attached TV's on Chrontel */ 2508 - static void __devinit 2509 - SiS_SenseCh(struct sis_video_info *ivideo) 2521 + static void SiS_SenseCh(struct sis_video_info *ivideo) 2510 2522 { 2511 2523 #if defined(CONFIG_FB_SIS_300) || defined(CONFIG_FB_SIS_315) 2512 2524 u8 temp1, temp2; ··· 2629 2643 } 2630 2644 } 2631 2645 2632 - static void __devinit 2633 - sisfb_get_VB_type(struct sis_video_info *ivideo) 2646 + static void sisfb_get_VB_type(struct sis_video_info *ivideo) 2634 2647 { 2635 2648 char stdstr[] = "sisfb: Detected"; 2636 2649 char bridgestr[] = "video bridge"; ··· 2891 2906 ivideo->engineok = 1; 2892 2907 } 2893 2908 2894 - static void __devinit 2895 - sisfb_detect_lcd_type(struct sis_video_info *ivideo) 2909 + static void sisfb_detect_lcd_type(struct sis_video_info *ivideo) 2896 2910 { 2897 2911 u8 reg; 2898 2912 int i; ··· 2946 2962 ivideo->lcdxres, ivideo->lcdyres); 2947 2963 } 2948 2964 2949 - static void __devinit 2950 - sisfb_save_pdc_emi(struct sis_video_info *ivideo) 2965 + static void sisfb_save_pdc_emi(struct sis_video_info *ivideo) 2951 2966 { 2952 2967 #ifdef CONFIG_FB_SIS_300 2953 2968 /* Save the current PanelDelayCompensation if the LCD is currently used */ ··· 3064 3081 3065 3082 /* -------------------- Memory manager routines ---------------------- */ 3066 3083 3067 - static u32 __devinit 3068 - sisfb_getheapstart(struct sis_video_info *ivideo) 3084 + static u32 sisfb_getheapstart(struct sis_video_info *ivideo) 3069 3085 { 3070 3086 u32 ret = ivideo->sisfb_parm_mem * 1024; 3071 3087 u32 maxoffs = ivideo->video_size - ivideo->hwcursor_size - ivideo->cmdQueueSize; ··· 3110 3128 return ret; 3111 3129 } 3112 3130 3113 - static u32 __devinit 3114 - sisfb_getheapsize(struct sis_video_info *ivideo) 3131 + static u32 sisfb_getheapsize(struct sis_video_info *ivideo) 3115 3132 { 3116 3133 u32 max = ivideo->video_size - ivideo->hwcursor_size - ivideo->cmdQueueSize; 3117 3134 u32 ret = 0; ··· 3135 3154 return ret; 3136 3155 } 3137 3156 3138 - static int __devinit 3139 - sisfb_heap_init(struct sis_video_info *ivideo) 3157 + static int sisfb_heap_init(struct sis_video_info *ivideo) 3140 3158 { 3141 3159 struct SIS_OH *poh; 3142 3160 ··· 4041 4061 } 4042 4062 #endif 4043 4063 4044 - static int __devinit 4045 - sisfb_check_rom(void __iomem *rom_base, struct sis_video_info *ivideo) 4064 + static int sisfb_check_rom(void __iomem *rom_base, 4065 + struct sis_video_info *ivideo) 4046 4066 { 4047 4067 void __iomem *rom; 4048 4068 int romptr; ··· 4069 4089 return 1; 4070 4090 } 4071 4091 4072 - static unsigned char * __devinit 4073 - sisfb_find_rom(struct pci_dev *pdev) 4092 + static unsigned char *sisfb_find_rom(struct pci_dev *pdev) 4074 4093 { 4075 4094 struct sis_video_info *ivideo = pci_get_drvdata(pdev); 4076 4095 void __iomem *rom_base; ··· 4128 4149 return myrombase; 4129 4150 } 4130 4151 4131 - static void __devinit 4132 - sisfb_post_map_vram(struct sis_video_info *ivideo, unsigned int *mapsize, 4133 - unsigned int min) 4152 + static void sisfb_post_map_vram(struct sis_video_info *ivideo, 4153 + unsigned int *mapsize, unsigned int min) 4134 4154 { 4135 4155 if (*mapsize < (min << 20)) 4136 4156 return; ··· 4154 4176 } 4155 4177 4156 4178 #ifdef CONFIG_FB_SIS_300 4157 - static int __devinit 4158 - sisfb_post_300_buswidth(struct sis_video_info *ivideo) 4179 + static int sisfb_post_300_buswidth(struct sis_video_info *ivideo) 4159 4180 { 4160 4181 void __iomem *FBAddress = ivideo->video_vbase; 4161 4182 unsigned short temp; ··· 4199 4222 return 1; /* 32bit */ 4200 4223 } 4201 4224 4202 - static const unsigned short __devinitconst SiS_DRAMType[17][5] = { 4225 + static const unsigned short SiS_DRAMType[17][5] = { 4203 4226 {0x0C,0x0A,0x02,0x40,0x39}, 4204 4227 {0x0D,0x0A,0x01,0x40,0x48}, 4205 4228 {0x0C,0x09,0x02,0x20,0x35}, ··· 4219 4242 {0x09,0x08,0x01,0x01,0x00} 4220 4243 }; 4221 4244 4222 - static int __devinit 4223 - sisfb_post_300_rwtest(struct sis_video_info *ivideo, int iteration, int buswidth, 4224 - int PseudoRankCapacity, int PseudoAdrPinCount, 4225 - unsigned int mapsize) 4245 + static int sisfb_post_300_rwtest(struct sis_video_info *ivideo, int iteration, 4246 + int buswidth, int PseudoRankCapacity, 4247 + int PseudoAdrPinCount, unsigned int mapsize) 4226 4248 { 4227 4249 void __iomem *FBAddr = ivideo->video_vbase; 4228 4250 unsigned short sr14; ··· 4285 4309 return 0; 4286 4310 } 4287 4311 4288 - static void __devinit 4289 - sisfb_post_300_ramsize(struct pci_dev *pdev, unsigned int mapsize) 4312 + static void sisfb_post_300_ramsize(struct pci_dev *pdev, unsigned int mapsize) 4290 4313 { 4291 4314 struct sis_video_info *ivideo = pci_get_drvdata(pdev); 4292 4315 int i, j, buswidth; ··· 4310 4335 } 4311 4336 } 4312 4337 4313 - static void __devinit 4314 - sisfb_post_sis300(struct pci_dev *pdev) 4338 + static void sisfb_post_sis300(struct pci_dev *pdev) 4315 4339 { 4316 4340 struct sis_video_info *ivideo = pci_get_drvdata(pdev); 4317 4341 unsigned char *bios = ivideo->SiS_Pr.VirtualRomBase; ··· 4521 4547 4522 4548 #ifdef CONFIG_FB_SIS_315 4523 4549 #if 0 4524 - static void __devinit 4525 - sisfb_post_sis315330(struct pci_dev *pdev) 4550 + static void sisfb_post_sis315330(struct pci_dev *pdev) 4526 4551 { 4527 4552 /* TODO */ 4528 4553 } ··· 4532 4559 return ivideo->chip_real_id == XGI_21; 4533 4560 } 4534 4561 4535 - static void __devinit 4536 - sisfb_post_xgi_delay(struct sis_video_info *ivideo, int delay) 4562 + static void sisfb_post_xgi_delay(struct sis_video_info *ivideo, int delay) 4537 4563 { 4538 4564 unsigned int i; 4539 4565 u8 reg; ··· 4543 4571 } 4544 4572 } 4545 4573 4546 - static int __devinit 4547 - sisfb_find_host_bridge(struct sis_video_info *ivideo, struct pci_dev *mypdev, 4548 - unsigned short pcivendor) 4574 + static int sisfb_find_host_bridge(struct sis_video_info *ivideo, 4575 + struct pci_dev *mypdev, 4576 + unsigned short pcivendor) 4549 4577 { 4550 4578 struct pci_dev *pdev = NULL; 4551 4579 unsigned short temp; ··· 4563 4591 return ret; 4564 4592 } 4565 4593 4566 - static int __devinit 4567 - sisfb_post_xgi_rwtest(struct sis_video_info *ivideo, int starta, 4568 - unsigned int enda, unsigned int mapsize) 4594 + static int sisfb_post_xgi_rwtest(struct sis_video_info *ivideo, int starta, 4595 + unsigned int enda, unsigned int mapsize) 4569 4596 { 4570 4597 unsigned int pos; 4571 4598 int i; ··· 4594 4623 return 1; 4595 4624 } 4596 4625 4597 - static int __devinit 4598 - sisfb_post_xgi_ramsize(struct sis_video_info *ivideo) 4626 + static int sisfb_post_xgi_ramsize(struct sis_video_info *ivideo) 4599 4627 { 4600 4628 unsigned int buswidth, ranksize, channelab, mapsize; 4601 4629 int i, j, k, l, status; ··· 4846 4876 return status; 4847 4877 } 4848 4878 4849 - static void __devinit 4850 - sisfb_post_xgi_setclocks(struct sis_video_info *ivideo, u8 regb) 4879 + static void sisfb_post_xgi_setclocks(struct sis_video_info *ivideo, u8 regb) 4851 4880 { 4852 4881 u8 v1, v2, v3; 4853 4882 int index; ··· 4901 4932 sisfb_post_xgi_delay(ivideo, 0x43); 4902 4933 } 4903 4934 4904 - static void __devinit 4905 - sisfb_post_xgi_ddr2_mrs_default(struct sis_video_info *ivideo, u8 regb) 4935 + static void sisfb_post_xgi_ddr2_mrs_default(struct sis_video_info *ivideo, 4936 + u8 regb) 4906 4937 { 4907 4938 unsigned char *bios = ivideo->bios_abase; 4908 4939 u8 v1; ··· 4942 4973 sisfb_post_xgi_delay(ivideo, 1); 4943 4974 } 4944 4975 4945 - static void __devinit 4946 - sisfb_post_xgi_ddr2_mrs_xg21(struct sis_video_info *ivideo) 4976 + static void sisfb_post_xgi_ddr2_mrs_xg21(struct sis_video_info *ivideo) 4947 4977 { 4948 4978 sisfb_post_xgi_setclocks(ivideo, 1); 4949 4979 ··· 4983 5015 sisfb_post_xgi_delay(ivideo, 1); 4984 5016 } 4985 5017 4986 - static void __devinit 4987 - sisfb_post_xgi_ddr2(struct sis_video_info *ivideo, u8 regb) 5018 + static void sisfb_post_xgi_ddr2(struct sis_video_info *ivideo, u8 regb) 4988 5019 { 4989 5020 unsigned char *bios = ivideo->bios_abase; 4990 5021 static const u8 cs158[8] = { ··· 5028 5061 sisfb_post_xgi_ddr2_mrs_default(ivideo, regb); 5029 5062 } 5030 5063 5031 - static u8 __devinit 5032 - sisfb_post_xgi_ramtype(struct sis_video_info *ivideo) 5064 + static u8 sisfb_post_xgi_ramtype(struct sis_video_info *ivideo) 5033 5065 { 5034 5066 unsigned char *bios = ivideo->bios_abase; 5035 5067 u8 ramtype; ··· 5067 5101 return ramtype; 5068 5102 } 5069 5103 5070 - static int __devinit 5071 - sisfb_post_xgi(struct pci_dev *pdev) 5104 + static int sisfb_post_xgi(struct pci_dev *pdev) 5072 5105 { 5073 5106 struct sis_video_info *ivideo = pci_get_drvdata(pdev); 5074 5107 unsigned char *bios = ivideo->bios_abase; ··· 5804 5839 } 5805 5840 #endif 5806 5841 5807 - static int __devinit 5808 - sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 5842 + static int sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 5809 5843 { 5810 5844 struct sisfb_chip_info *chipinfo = &sisfb_chip_info[ent->driver_data]; 5811 5845 struct sis_video_info *ivideo = NULL; ··· 6494 6530 /* PCI DEVICE HANDLING */ 6495 6531 /*****************************************************/ 6496 6532 6497 - static void __devexit sisfb_remove(struct pci_dev *pdev) 6533 + static void sisfb_remove(struct pci_dev *pdev) 6498 6534 { 6499 6535 struct sis_video_info *ivideo = pci_get_drvdata(pdev); 6500 6536 struct fb_info *sis_fb_info = ivideo->memyselfandi; ··· 6555 6591 .name = "sisfb", 6556 6592 .id_table = sisfb_pci_table, 6557 6593 .probe = sisfb_probe, 6558 - .remove = __devexit_p(sisfb_remove) 6594 + .remove = sisfb_remove, 6559 6595 }; 6560 6596 6561 6597 static int __init sisfb_init(void)
+10 -10
drivers/video/sis/sis_main.h
··· 98 98 int hwcursor_size; 99 99 int CRT2_write_enable; 100 100 const char *chip_name; 101 - } sisfb_chip_info[] __devinitdata = { 101 + } sisfb_chip_info[] = { 102 102 { SIS_300, SIS_300_VGA, 0, HW_CURSOR_AREA_SIZE_300 * 2, SIS_CRT2_WENABLE_300, "SiS 300/305" }, 103 103 { SIS_540, SIS_300_VGA, 0, HW_CURSOR_AREA_SIZE_300 * 2, SIS_CRT2_WENABLE_300, "SiS 540" }, 104 104 { SIS_630, SIS_300_VGA, 0, HW_CURSOR_AREA_SIZE_300 * 2, SIS_CRT2_WENABLE_300, "SiS 630" }, ··· 113 113 { XGI_40, SIS_315_VGA, 1, HW_CURSOR_AREA_SIZE_315 * 4, SIS_CRT2_WENABLE_315, "XGI V3XT/V5/V8" }, 114 114 }; 115 115 116 - static struct pci_device_id __devinitdata sisfb_pci_table[] = { 116 + static struct pci_device_id sisfb_pci_table[] = { 117 117 #ifdef CONFIG_FB_SIS_300 118 118 { PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 119 119 { PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_540_VGA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1}, ··· 317 317 u16 xres; 318 318 u16 yres; 319 319 u8 default_mode_idx; 320 - } sis_lcd_data[] __devinitdata = { 320 + } sis_lcd_data[] = { 321 321 { LCD_640x480, 640, 480, 23 }, 322 322 { LCD_800x600, 800, 600, 43 }, 323 323 { LCD_1024x600, 1024, 600, 67 }, ··· 339 339 }; 340 340 341 341 /* CR36 evaluation */ 342 - static unsigned short sis300paneltype[] __devinitdata = { 342 + static unsigned short sis300paneltype[] = { 343 343 LCD_UNKNOWN, LCD_800x600, LCD_1024x768, LCD_1280x1024, 344 344 LCD_1280x960, LCD_640x480, LCD_1024x600, LCD_1152x768, 345 345 LCD_UNKNOWN, LCD_UNKNOWN, LCD_UNKNOWN, LCD_UNKNOWN, 346 346 LCD_UNKNOWN, LCD_UNKNOWN, LCD_UNKNOWN, LCD_UNKNOWN 347 347 }; 348 348 349 - static unsigned short sis310paneltype[] __devinitdata = { 349 + static unsigned short sis310paneltype[] = { 350 350 LCD_UNKNOWN, LCD_800x600, LCD_1024x768, LCD_1280x1024, 351 351 LCD_640x480, LCD_1024x600, LCD_1152x864, LCD_1280x960, 352 352 LCD_1152x768, LCD_1400x1050, LCD_1280x768, LCD_1600x1200, 353 353 LCD_320x240_2, LCD_320x240_3, LCD_UNKNOWN, LCD_UNKNOWN 354 354 }; 355 355 356 - static unsigned short sis661paneltype[] __devinitdata = { 356 + static unsigned short sis661paneltype[] = { 357 357 LCD_UNKNOWN, LCD_800x600, LCD_1024x768, LCD_1280x1024, 358 358 LCD_640x480, LCD_1024x600, LCD_1152x864, LCD_1280x960, 359 359 LCD_1280x854, LCD_1400x1050, LCD_1280x768, LCD_1600x1200, ··· 466 466 u16 h; 467 467 u16 v; 468 468 u32 d; 469 - } sisfb_ddcsmodes[] __devinitdata = { 469 + } sisfb_ddcsmodes[] = { 470 470 { 0x10000, 67, 75, 108000}, 471 471 { 0x08000, 48, 72, 50000}, 472 472 { 0x04000, 46, 75, 49500}, ··· 488 488 u16 v; 489 489 u16 h; 490 490 u32 d; 491 - } sisfb_ddcfmodes[] __devinitdata = { 491 + } sisfb_ddcfmodes[] = { 492 492 { 1280, 1024, 85, 92, 157500}, 493 493 { 1600, 1200, 60, 75, 162000}, 494 494 { 1600, 1200, 65, 82, 175500}, ··· 505 505 u16 subsysCard; 506 506 char *vendorName; 507 507 char *cardName; 508 - } mychswtable[] __devinitdata = { 508 + } mychswtable[] = { 509 509 { 0x1631, 0x1002, "Mitachi", "0x1002" }, 510 510 { 0x1071, 0x7521, "Mitac" , "7521P" }, 511 511 { 0, 0, "" , "" } ··· 525 525 char *cardName; 526 526 u32 SpecialID; 527 527 char *optionName; 528 - } mycustomttable[] __devinitdata = { 528 + } mycustomttable[] = { 529 529 { SIS_630, "2.00.07", "09/27/2002-13:38:25", 530 530 0x3240A8, 531 531 { 0x220, 0x227, 0x228, 0x229, 0x0ee },
+7 -10
drivers/video/skeletonfb.c
··· 63 63 /* 64 64 * Driver data 65 65 */ 66 - static char *mode_option __devinitdata; 66 + static char *mode_option; 67 67 68 68 /* 69 69 * If your driver supports multiple boards, you should make the ··· 84 84 * if we don't use modedb. If we do use modedb see xxxfb_init how to use it 85 85 * to get a fb_var_screeninfo. Otherwise define a default var as well. 86 86 */ 87 - static struct fb_fix_screeninfo xxxfb_fix __devinitdata = { 87 + static struct fb_fix_screeninfo xxxfb_fix = { 88 88 .id = "FB's name", 89 89 .type = FB_TYPE_PACKED_PIXELS, 90 90 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 678 678 */ 679 679 680 680 /* static int __init xxfb_probe (struct platform_device *pdev) -- for platform devs */ 681 - static int __devinit xxxfb_probe(struct pci_dev *dev, 682 - const struct pci_device_id *ent) 681 + static int xxxfb_probe(struct pci_dev *dev, const struct pci_device_id *ent) 683 682 { 684 683 struct fb_info *info; 685 684 struct xxx_par *par; ··· 704 705 */ 705 706 info->screen_base = framebuffer_virtual_memory; 706 707 info->fbops = &xxxfb_ops; 707 - info->fix = xxxfb_fix; /* this will be the only time xxxfb_fix will be 708 - * used, so mark it as __devinitdata 709 - */ 708 + info->fix = xxxfb_fix; 710 709 info->pseudo_palette = pseudo_palette; /* The pseudopalette is an 711 710 * 16-member array 712 711 */ ··· 833 836 /* 834 837 * Cleanup 835 838 */ 836 - /* static void __devexit xxxfb_remove(struct platform_device *pdev) */ 837 - static void __devexit xxxfb_remove(struct pci_dev *dev) 839 + /* static void xxxfb_remove(struct platform_device *pdev) */ 840 + static void xxxfb_remove(struct pci_dev *dev) 838 841 { 839 842 struct fb_info *info = pci_get_drvdata(dev); 840 843 /* or platform_get_drvdata(pdev); */ ··· 896 899 .name = "xxxfb", 897 900 .id_table = xxxfb_id_table, 898 901 .probe = xxxfb_probe, 899 - .remove = __devexit_p(xxxfb_remove), 902 + .remove = xxxfb_remove, 900 903 .suspend = xxxfb_suspend, /* optional but recommended */ 901 904 .resume = xxxfb_resume, /* optional but recommended */ 902 905 };
+7 -9
drivers/video/sm501fb.c
··· 46 46 static char *fb_mode = "640x480-16@60"; 47 47 static unsigned long default_bpp = 16; 48 48 49 - static struct fb_videomode __devinitdata sm501_default_mode = { 49 + static struct fb_videomode sm501_default_mode = { 50 50 .refresh = 60, 51 51 .xres = 640, 52 52 .yres = 480, ··· 1664 1664 resource_size(info->regs_res)); 1665 1665 } 1666 1666 1667 - static int __devinit sm501fb_init_fb(struct fb_info *fb, 1668 - enum sm501_controller head, 1667 + static int sm501fb_init_fb(struct fb_info *fb, enum sm501_controller head, 1669 1668 const char *fbname) 1670 1669 { 1671 1670 struct sm501_platdata_fbsub *pd; ··· 1849 1850 static char driver_name_crt[] = "sm501fb-crt"; 1850 1851 static char driver_name_pnl[] = "sm501fb-panel"; 1851 1852 1852 - static int __devinit sm501fb_probe_one(struct sm501fb_info *info, 1853 - enum sm501_controller head) 1853 + static int sm501fb_probe_one(struct sm501fb_info *info, 1854 + enum sm501_controller head) 1854 1855 { 1855 1856 unsigned char *name = (head == HEAD_CRT) ? "crt" : "panel"; 1856 1857 struct sm501_platdata_fbsub *pd; ··· 1891 1892 fb_dealloc_cmap(&fbi->cmap); 1892 1893 } 1893 1894 1894 - static int __devinit sm501fb_start_one(struct sm501fb_info *info, 1895 - enum sm501_controller head, 1896 - const char *drvname) 1895 + static int sm501fb_start_one(struct sm501fb_info *info, 1896 + enum sm501_controller head, const char *drvname) 1897 1897 { 1898 1898 struct fb_info *fbi = info->fb[head]; 1899 1899 int ret; ··· 1920 1922 return 0; 1921 1923 } 1922 1924 1923 - static int __devinit sm501fb_probe(struct platform_device *pdev) 1925 + static int sm501fb_probe(struct platform_device *pdev) 1924 1926 { 1925 1927 struct sm501fb_info *info; 1926 1928 struct device *dev = &pdev->dev;
+6 -5
drivers/video/ssd1307fb.c
··· 36 36 int reset; 37 37 }; 38 38 39 - static struct fb_fix_screeninfo ssd1307fb_fix __devinitdata = { 39 + static struct fb_fix_screeninfo ssd1307fb_fix = { 40 40 .id = "Solomon SSD1307", 41 41 .type = FB_TYPE_PACKED_PIXELS, 42 42 .visual = FB_VISUAL_MONO10, ··· 47 47 .accel = FB_ACCEL_NONE, 48 48 }; 49 49 50 - static struct fb_var_screeninfo ssd1307fb_var __devinitdata = { 50 + static struct fb_var_screeninfo ssd1307fb_var = { 51 51 .xres = SSD1307FB_WIDTH, 52 52 .yres = SSD1307FB_HEIGHT, 53 53 .xres_virtual = SSD1307FB_WIDTH, ··· 227 227 .deferred_io = ssd1307fb_deferred_io, 228 228 }; 229 229 230 - static int __devinit ssd1307fb_probe(struct i2c_client *client, const struct i2c_device_id *id) 230 + static int ssd1307fb_probe(struct i2c_client *client, 231 + const struct i2c_device_id *id) 231 232 { 232 233 struct fb_info *info; 233 234 u32 vmem_size = SSD1307FB_WIDTH * SSD1307FB_HEIGHT / 8; ··· 353 352 return ret; 354 353 } 355 354 356 - static int __devexit ssd1307fb_remove(struct i2c_client *client) 355 + static int ssd1307fb_remove(struct i2c_client *client) 357 356 { 358 357 struct fb_info *info = i2c_get_clientdata(client); 359 358 struct ssd1307fb_par *par = info->par; ··· 381 380 382 381 static struct i2c_driver ssd1307fb_driver = { 383 382 .probe = ssd1307fb_probe, 384 - .remove = __devexit_p(ssd1307fb_remove), 383 + .remove = ssd1307fb_remove, 385 384 .id_table = ssd1307fb_i2c_id, 386 385 .driver = { 387 386 .name = "ssd1307fb",
+16 -17
drivers/video/sstfb.c
··· 104 104 */ 105 105 #define DEFAULT_VIDEO_MODE "640x480@60" 106 106 107 - static char *mode_option __devinitdata = DEFAULT_VIDEO_MODE; 107 + static char *mode_option = DEFAULT_VIDEO_MODE; 108 108 109 109 enum { 110 110 ID_VOODOO1 = 0, ··· 113 113 114 114 #define IS_VOODOO2(par) ((par)->type == ID_VOODOO2) 115 115 116 - static struct sst_spec voodoo_spec[] __devinitdata = { 116 + static struct sst_spec voodoo_spec[] = { 117 117 { .name = "Voodoo Graphics", .default_gfx_clock = 50000, .max_gfxclk = 60 }, 118 118 { .name = "Voodoo2", .default_gfx_clock = 75000, .max_gfxclk = 85 }, 119 119 }; ··· 822 822 /* 823 823 * get lfb size 824 824 */ 825 - static int __devinit sst_get_memsize(struct fb_info *info, __u32 *memsize) 825 + static int sst_get_memsize(struct fb_info *info, __u32 *memsize) 826 826 { 827 827 u8 __iomem *fbbase_virt = info->screen_base; 828 828 ··· 865 865 /* fbi should be idle, and fifo emty and mem disabled */ 866 866 /* supposed to detect AT&T ATT20C409 and Ti TVP3409 ramdacs */ 867 867 868 - static int __devinit sst_detect_att(struct fb_info *info) 868 + static int sst_detect_att(struct fb_info *info) 869 869 { 870 870 struct sstfb_par *par = info->par; 871 871 int i, mir, dir; ··· 890 890 return 0; 891 891 } 892 892 893 - static int __devinit sst_detect_ti(struct fb_info *info) 893 + static int sst_detect_ti(struct fb_info *info) 894 894 { 895 895 struct sstfb_par *par = info->par; 896 896 int i, mir, dir; ··· 926 926 * touched... 927 927 * is it really safe ? how can i reset this ramdac ? geee... 928 928 */ 929 - static int __devinit sst_detect_ics(struct fb_info *info) 929 + static int sst_detect_ics(struct fb_info *info) 930 930 { 931 931 struct sstfb_par *par = info->par; 932 932 int m_clk0_1, m_clk0_7, m_clk1_b; ··· 1105 1105 */ 1106 1106 1107 1107 1108 - static struct dac_switch dacs[] __devinitdata = { 1108 + static struct dac_switch dacs[] = { 1109 1109 { .name = "TI TVP3409", 1110 1110 .detect = sst_detect_ti, 1111 1111 .set_pll = sst_set_pll_att_ti, ··· 1121 1121 .set_vidmod = sst_set_vidmod_ics }, 1122 1122 }; 1123 1123 1124 - static int __devinit sst_detect_dactype(struct fb_info *info, struct sstfb_par *par) 1124 + static int sst_detect_dactype(struct fb_info *info, struct sstfb_par *par) 1125 1125 { 1126 1126 int i, ret = 0; 1127 1127 ··· 1140 1140 /* 1141 1141 * Internal Routines 1142 1142 */ 1143 - static int __devinit sst_init(struct fb_info *info, struct sstfb_par *par) 1143 + static int sst_init(struct fb_info *info, struct sstfb_par *par) 1144 1144 { 1145 1145 u32 fbiinit0, fbiinit1, fbiinit4; 1146 1146 struct pci_dev *dev = par->dev; ··· 1239 1239 return 1; 1240 1240 } 1241 1241 1242 - static void __devexit sst_shutdown(struct fb_info *info) 1242 + static void sst_shutdown(struct fb_info *info) 1243 1243 { 1244 1244 struct sstfb_par *par = info->par; 1245 1245 struct pci_dev *dev = par->dev; ··· 1271 1271 /* 1272 1272 * Interface to the world 1273 1273 */ 1274 - static int __devinit sstfb_setup(char *options) 1274 + static int sstfb_setup(char *options) 1275 1275 { 1276 1276 char *this_opt; 1277 1277 ··· 1317 1317 .fb_ioctl = sstfb_ioctl, 1318 1318 }; 1319 1319 1320 - static int __devinit sstfb_probe(struct pci_dev *pdev, 1321 - const struct pci_device_id *id) 1320 + static int sstfb_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1322 1321 { 1323 1322 struct fb_info *info; 1324 1323 struct fb_fix_screeninfo *fix; ··· 1457 1458 return -ENXIO; /* no voodoo detected */ 1458 1459 } 1459 1460 1460 - static void __devexit sstfb_remove(struct pci_dev *pdev) 1461 + static void sstfb_remove(struct pci_dev *pdev) 1461 1462 { 1462 1463 struct sstfb_par *par; 1463 1464 struct fb_info *info; ··· 1489 1490 .name = "sstfb", 1490 1491 .id_table = sstfb_id_tbl, 1491 1492 .probe = sstfb_probe, 1492 - .remove = __devexit_p(sstfb_remove), 1493 + .remove = sstfb_remove, 1493 1494 }; 1494 1495 1495 1496 1496 - static int __devinit sstfb_init(void) 1497 + static int sstfb_init(void) 1497 1498 { 1498 1499 char *option = NULL; 1499 1500 ··· 1504 1505 return pci_register_driver(&sstfb_driver); 1505 1506 } 1506 1507 1507 - static void __devexit sstfb_exit(void) 1508 + static void sstfb_exit(void) 1508 1509 { 1509 1510 pci_unregister_driver(&sstfb_driver); 1510 1511 }
+5 -5
drivers/video/sunxvr1000.c
··· 25 25 u32 pseudo_palette[16]; 26 26 }; 27 27 28 - static int __devinit gfb_get_props(struct gfb_info *gp) 28 + static int gfb_get_props(struct gfb_info *gp) 29 29 { 30 30 gp->width = of_getintprop_default(gp->of_node, "width", 0); 31 31 gp->height = of_getintprop_default(gp->of_node, "height", 0); ··· 66 66 .fb_imageblit = cfb_imageblit, 67 67 }; 68 68 69 - static int __devinit gfb_set_fbinfo(struct gfb_info *gp) 69 + static int gfb_set_fbinfo(struct gfb_info *gp) 70 70 { 71 71 struct fb_info *info = gp->info; 72 72 struct fb_var_screeninfo *var = &info->var; ··· 111 111 return 0; 112 112 } 113 113 114 - static int __devinit gfb_probe(struct platform_device *op) 114 + static int gfb_probe(struct platform_device *op) 115 115 { 116 116 struct device_node *dp = op->dev.of_node; 117 117 struct fb_info *info; ··· 173 173 return err; 174 174 } 175 175 176 - static int __devexit gfb_remove(struct platform_device *op) 176 + static int gfb_remove(struct platform_device *op) 177 177 { 178 178 struct fb_info *info = dev_get_drvdata(&op->dev); 179 179 struct gfb_info *gp = info->par; ··· 201 201 202 202 static struct platform_driver gfb_driver = { 203 203 .probe = gfb_probe, 204 - .remove = __devexit_p(gfb_remove), 204 + .remove = gfb_remove, 205 205 .driver = { 206 206 .name = "gfb", 207 207 .owner = THIS_MODULE,
+6 -6
drivers/video/sunxvr2500.c
··· 29 29 u32 pseudo_palette[16]; 30 30 }; 31 31 32 - static int __devinit s3d_get_props(struct s3d_info *sp) 32 + static int s3d_get_props(struct s3d_info *sp) 33 33 { 34 34 sp->width = of_getintprop_default(sp->of_node, "width", 0); 35 35 sp->height = of_getintprop_default(sp->of_node, "height", 0); ··· 70 70 .fb_imageblit = cfb_imageblit, 71 71 }; 72 72 73 - static int __devinit s3d_set_fbinfo(struct s3d_info *sp) 73 + static int s3d_set_fbinfo(struct s3d_info *sp) 74 74 { 75 75 struct fb_info *info = sp->info; 76 76 struct fb_var_screeninfo *var = &info->var; ··· 115 115 return 0; 116 116 } 117 117 118 - static int __devinit s3d_pci_register(struct pci_dev *pdev, 119 - const struct pci_device_id *ent) 118 + static int s3d_pci_register(struct pci_dev *pdev, 119 + const struct pci_device_id *ent) 120 120 { 121 121 struct fb_info *info; 122 122 struct s3d_info *sp; ··· 219 219 return err; 220 220 } 221 221 222 - static void __devexit s3d_pci_unregister(struct pci_dev *pdev) 222 + static void s3d_pci_unregister(struct pci_dev *pdev) 223 223 { 224 224 struct fb_info *info = pci_get_drvdata(pdev); 225 225 struct s3d_info *sp = info->par; ··· 251 251 .name = "s3d", 252 252 .id_table = s3d_pci_table, 253 253 .probe = s3d_pci_register, 254 - .remove = __devexit_p(s3d_pci_unregister), 254 + .remove = s3d_pci_unregister, 255 255 }; 256 256 257 257 static int __init s3d_init(void)
+6 -6
drivers/video/sunxvr500.c
··· 51 51 u32 pseudo_palette[16]; 52 52 }; 53 53 54 - static int __devinit e3d_get_props(struct e3d_info *ep) 54 + static int e3d_get_props(struct e3d_info *ep) 55 55 { 56 56 ep->width = of_getintprop_default(ep->of_node, "width", 0); 57 57 ep->height = of_getintprop_default(ep->of_node, "height", 0); ··· 193 193 .fb_imageblit = e3d_imageblit, 194 194 }; 195 195 196 - static int __devinit e3d_set_fbinfo(struct e3d_info *ep) 196 + static int e3d_set_fbinfo(struct e3d_info *ep) 197 197 { 198 198 struct fb_info *info = ep->info; 199 199 struct fb_var_screeninfo *var = &info->var; ··· 238 238 return 0; 239 239 } 240 240 241 - static int __devinit e3d_pci_register(struct pci_dev *pdev, 242 - const struct pci_device_id *ent) 241 + static int e3d_pci_register(struct pci_dev *pdev, 242 + const struct pci_device_id *ent) 243 243 { 244 244 struct device_node *of_node; 245 245 const char *device_type; ··· 392 392 return err; 393 393 } 394 394 395 - static void __devexit e3d_pci_unregister(struct pci_dev *pdev) 395 + static void e3d_pci_unregister(struct pci_dev *pdev) 396 396 { 397 397 struct fb_info *info = pci_get_drvdata(pdev); 398 398 struct e3d_info *ep = info->par; ··· 437 437 .name = "e3d", 438 438 .id_table = e3d_pci_table, 439 439 .probe = e3d_pci_register, 440 - .remove = __devexit_p(e3d_pci_unregister), 440 + .remove = e3d_pci_unregister, 441 441 }; 442 442 443 443 static int __init e3d_init(void)
+3 -3
drivers/video/tcx.c
··· 362 362 info->screen_base, info->fix.smem_len); 363 363 } 364 364 365 - static int __devinit tcx_probe(struct platform_device *op) 365 + static int tcx_probe(struct platform_device *op) 366 366 { 367 367 struct device_node *dp = op->dev.of_node; 368 368 struct fb_info *info; ··· 486 486 return err; 487 487 } 488 488 489 - static int __devexit tcx_remove(struct platform_device *op) 489 + static int tcx_remove(struct platform_device *op) 490 490 { 491 491 struct fb_info *info = dev_get_drvdata(&op->dev); 492 492 struct tcx_par *par = info->par; ··· 518 518 .of_match_table = tcx_match, 519 519 }, 520 520 .probe = tcx_probe, 521 - .remove = __devexit_p(tcx_remove), 521 + .remove = tcx_remove, 522 522 }; 523 523 524 524 static int __init tcx_init(void)
+14 -16
drivers/video/tdfxfb.c
··· 100 100 #define VOODOO3_MAX_PIXCLOCK 300000 101 101 #define VOODOO5_MAX_PIXCLOCK 350000 102 102 103 - static struct fb_fix_screeninfo tdfx_fix __devinitdata = { 103 + static struct fb_fix_screeninfo tdfx_fix = { 104 104 .type = FB_TYPE_PACKED_PIXELS, 105 105 .visual = FB_VISUAL_PSEUDOCOLOR, 106 106 .ypanstep = 1, ··· 108 108 .accel = FB_ACCEL_3DFX_BANSHEE 109 109 }; 110 110 111 - static struct fb_var_screeninfo tdfx_var __devinitdata = { 111 + static struct fb_var_screeninfo tdfx_var = { 112 112 /* "640x480, 8 bpp @ 60 Hz */ 113 113 .xres = 640, 114 114 .yres = 480, ··· 135 135 /* 136 136 * PCI driver prototypes 137 137 */ 138 - static int __devinit tdfxfb_probe(struct pci_dev *pdev, 139 - const struct pci_device_id *id); 140 - static void __devexit tdfxfb_remove(struct pci_dev *pdev); 138 + static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id); 139 + static void tdfxfb_remove(struct pci_dev *pdev); 141 140 142 141 static struct pci_device_id tdfxfb_id_table[] = { 143 142 { PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE, ··· 155 156 .name = "tdfxfb", 156 157 .id_table = tdfxfb_id_table, 157 158 .probe = tdfxfb_probe, 158 - .remove = __devexit_p(tdfxfb_remove), 159 + .remove = tdfxfb_remove, 159 160 }; 160 161 161 162 MODULE_DEVICE_TABLE(pci, tdfxfb_id_table); ··· 166 167 static int nopan; 167 168 static int nowrap = 1; /* not implemented (yet) */ 168 169 static int hwcursor = 1; 169 - static char *mode_option __devinitdata; 170 + static char *mode_option; 170 171 /* mtrr option */ 171 - static bool nomtrr __devinitdata; 172 + static bool nomtrr; 172 173 173 174 /* ------------------------------------------------------------------------- 174 175 * Hardware-specific funcions ··· 1278 1279 return (0 != (tdfx_inl(par, VIDSERPARPORT) & DDC_SDA_IN)); 1279 1280 } 1280 1281 1281 - static int __devinit tdfxfb_setup_ddc_bus(struct tdfxfb_i2c_chan *chan, 1282 - const char *name, struct device *dev) 1282 + static int tdfxfb_setup_ddc_bus(struct tdfxfb_i2c_chan *chan, const char *name, 1283 + struct device *dev) 1283 1284 { 1284 1285 int rc; 1285 1286 ··· 1307 1308 return rc; 1308 1309 } 1309 1310 1310 - static int __devinit tdfxfb_setup_i2c_bus(struct tdfxfb_i2c_chan *chan, 1311 - const char *name, struct device *dev) 1311 + static int tdfxfb_setup_i2c_bus(struct tdfxfb_i2c_chan *chan, const char *name, 1312 + struct device *dev) 1312 1313 { 1313 1314 int rc; 1314 1315 ··· 1335 1336 return rc; 1336 1337 } 1337 1338 1338 - static void __devinit tdfxfb_create_i2c_busses(struct fb_info *info) 1339 + static void tdfxfb_create_i2c_busses(struct fb_info *info) 1339 1340 { 1340 1341 struct tdfx_par *par = info->par; 1341 1342 ··· 1387 1388 * Initializes and allocates resources for PCI device @pdev. 1388 1389 * 1389 1390 */ 1390 - static int __devinit tdfxfb_probe(struct pci_dev *pdev, 1391 - const struct pci_device_id *id) 1391 + static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1392 1392 { 1393 1393 struct tdfx_par *default_par; 1394 1394 struct fb_info *info; ··· 1624 1626 * lifetime for the PCI device @pdev. 1625 1627 * 1626 1628 */ 1627 - static void __devexit tdfxfb_remove(struct pci_dev *pdev) 1629 + static void tdfxfb_remove(struct pci_dev *pdev) 1628 1630 { 1629 1631 struct fb_info *info = pci_get_drvdata(pdev); 1630 1632 struct tdfx_par *par = info->par;
+18 -27
drivers/video/tgafb.c
··· 61 61 static void tgafb_copyarea(struct fb_info *, const struct fb_copyarea *); 62 62 static int tgafb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info); 63 63 64 - static int __devinit tgafb_register(struct device *dev); 65 - static void __devexit tgafb_unregister(struct device *dev); 64 + static int tgafb_register(struct device *dev); 65 + static void tgafb_unregister(struct device *dev); 66 66 67 67 static const char *mode_option; 68 68 static const char *mode_option_pci = "640x480@60"; ··· 93 93 /* 94 94 * PCI registration operations 95 95 */ 96 - static int __devinit tgafb_pci_register(struct pci_dev *, 97 - const struct pci_device_id *); 98 - static void __devexit tgafb_pci_unregister(struct pci_dev *); 96 + static int tgafb_pci_register(struct pci_dev *, const struct pci_device_id *); 97 + static void tgafb_pci_unregister(struct pci_dev *); 99 98 100 99 static struct pci_device_id const tgafb_pci_table[] = { 101 100 { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TGA) }, ··· 106 107 .name = "tgafb", 107 108 .id_table = tgafb_pci_table, 108 109 .probe = tgafb_pci_register, 109 - .remove = __devexit_p(tgafb_pci_unregister), 110 + .remove = tgafb_pci_unregister, 110 111 }; 111 112 112 - static int __devinit 113 - tgafb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent) 113 + static int tgafb_pci_register(struct pci_dev *pdev, 114 + const struct pci_device_id *ent) 114 115 { 115 116 return tgafb_register(&pdev->dev); 116 117 } 117 118 118 - static void __devexit 119 - tgafb_pci_unregister(struct pci_dev *pdev) 119 + static void tgafb_pci_unregister(struct pci_dev *pdev) 120 120 { 121 121 tgafb_unregister(&pdev->dev); 122 122 } ··· 125 127 /* 126 128 * TC registration operations 127 129 */ 128 - static int __devinit tgafb_tc_register(struct device *); 129 - static int __devexit tgafb_tc_unregister(struct device *); 130 + static int tgafb_tc_register(struct device *); 131 + static int tgafb_tc_unregister(struct device *); 130 132 131 133 static struct tc_device_id const tgafb_tc_table[] = { 132 134 { "DEC ", "PMAGD-AA" }, ··· 141 143 .name = "tgafb", 142 144 .bus = &tc_bus_type, 143 145 .probe = tgafb_tc_register, 144 - .remove = __devexit_p(tgafb_tc_unregister), 146 + .remove = tgafb_tc_unregister, 145 147 }, 146 148 }; 147 149 148 - static int __devinit 149 - tgafb_tc_register(struct device *dev) 150 + static int tgafb_tc_register(struct device *dev) 150 151 { 151 152 int status = tgafb_register(dev); 152 153 if (!status) ··· 153 156 return status; 154 157 } 155 158 156 - static int __devexit 157 - tgafb_tc_unregister(struct device *dev) 159 + static int tgafb_tc_unregister(struct device *dev) 158 160 { 159 161 put_device(dev); 160 162 tgafb_unregister(dev); ··· 1542 1546 return 0; 1543 1547 } 1544 1548 1545 - static int __devinit 1546 - tgafb_register(struct device *dev) 1549 + static int tgafb_register(struct device *dev) 1547 1550 { 1548 1551 static const struct fb_videomode modedb_tc = { 1549 1552 /* 1280x1024 @ 72 Hz, 76.8 kHz hsync */ ··· 1687 1692 return ret; 1688 1693 } 1689 1694 1690 - static void __devexit 1691 - tgafb_unregister(struct device *dev) 1695 + static void tgafb_unregister(struct device *dev) 1692 1696 { 1693 1697 resource_size_t bar0_start = 0, bar0_len = 0; 1694 1698 int tga_bus_pci = TGA_BUS_PCI(dev); ··· 1715 1721 framebuffer_release(info); 1716 1722 } 1717 1723 1718 - static void __devexit 1719 - tgafb_exit(void) 1724 + static void tgafb_exit(void) 1720 1725 { 1721 1726 tc_unregister_driver(&tgafb_tc_driver); 1722 1727 pci_unregister_driver(&tgafb_pci_driver); 1723 1728 } 1724 1729 1725 1730 #ifndef MODULE 1726 - static int __devinit 1727 - tgafb_setup(char *arg) 1731 + static int tgafb_setup(char *arg) 1728 1732 { 1729 1733 char *this_opt; 1730 1734 ··· 1743 1751 } 1744 1752 #endif /* !MODULE */ 1745 1753 1746 - static int __devinit 1747 - tgafb_init(void) 1754 + static int tgafb_init(void) 1748 1755 { 1749 1756 int status; 1750 1757 #ifndef MODULE
+4 -4
drivers/video/tmiofb.c
··· 191 191 #define LCR_VCLKHW 0x1b4 /* VCLK High Width */ 192 192 #define LCR_OC 0x1b6 /* Output Control */ 193 193 194 - static char *mode_option __devinitdata; 194 + static char *mode_option; 195 195 196 196 struct tmiofb_par { 197 197 u32 pseudo_palette[16]; ··· 675 675 676 676 /*--------------------------------------------------------------------------*/ 677 677 678 - static int __devinit tmiofb_probe(struct platform_device *dev) 678 + static int tmiofb_probe(struct platform_device *dev) 679 679 { 680 680 const struct mfd_cell *cell = mfd_get_cell(dev); 681 681 struct tmio_fb_data *data = dev->dev.platform_data; ··· 807 807 return retval; 808 808 } 809 809 810 - static int __devexit tmiofb_remove(struct platform_device *dev) 810 + static int tmiofb_remove(struct platform_device *dev) 811 811 { 812 812 const struct mfd_cell *cell = mfd_get_cell(dev); 813 813 struct fb_info *info = platform_get_drvdata(dev); ··· 1002 1002 .driver.name = "tmio-fb", 1003 1003 .driver.owner = THIS_MODULE, 1004 1004 .probe = tmiofb_probe, 1005 - .remove = __devexit_p(tmiofb_remove), 1005 + .remove = tmiofb_remove, 1006 1006 .suspend = tmiofb_suspend, 1007 1007 .resume = tmiofb_resume, 1008 1008 };
+14 -14
drivers/video/tridentfb.c
··· 53 53 /* defaults which are normally overriden by user values */ 54 54 55 55 /* video mode */ 56 - static char *mode_option __devinitdata = "640x480-8@60"; 57 - static int bpp __devinitdata = 8; 56 + static char *mode_option = "640x480-8@60"; 57 + static int bpp = 8; 58 58 59 - static int noaccel __devinitdata; 59 + static int noaccel; 60 60 61 61 static int center; 62 62 static int stretch; 63 63 64 - static int fp __devinitdata; 65 - static int crt __devinitdata; 64 + static int fp; 65 + static int crt; 66 66 67 - static int memsize __devinitdata; 68 - static int memdiff __devinitdata; 67 + static int memsize; 68 + static int memdiff; 69 69 static int nativex; 70 70 71 71 module_param(mode_option, charp, 0); ··· 637 637 } 638 638 639 639 /* Return flat panel's maximum x resolution */ 640 - static int __devinit get_nativex(struct tridentfb_par *par) 640 + static int get_nativex(struct tridentfb_par *par) 641 641 { 642 642 int x, y, tmp; 643 643 ··· 771 771 * If we see that FP is active we assume we have one. 772 772 * Otherwise we have a CRT display. User can override. 773 773 */ 774 - static int __devinit is_flatpanel(struct tridentfb_par *par) 774 + static int is_flatpanel(struct tridentfb_par *par) 775 775 { 776 776 if (fp) 777 777 return 1; ··· 781 781 } 782 782 783 783 /* Try detecting the video memory size */ 784 - static unsigned int __devinit get_memsize(struct tridentfb_par *par) 784 + static unsigned int get_memsize(struct tridentfb_par *par) 785 785 { 786 786 unsigned char tmp, tmp2; 787 787 unsigned int k; ··· 1331 1331 .fb_sync = tridentfb_sync, 1332 1332 }; 1333 1333 1334 - static int __devinit trident_pci_probe(struct pci_dev *dev, 1335 - const struct pci_device_id *id) 1334 + static int trident_pci_probe(struct pci_dev *dev, 1335 + const struct pci_device_id *id) 1336 1336 { 1337 1337 int err; 1338 1338 unsigned char revision; ··· 1543 1543 return err; 1544 1544 } 1545 1545 1546 - static void __devexit trident_pci_remove(struct pci_dev *dev) 1546 + static void trident_pci_remove(struct pci_dev *dev) 1547 1547 { 1548 1548 struct fb_info *info = pci_get_drvdata(dev); 1549 1549 struct tridentfb_par *par = info->par; ··· 1591 1591 .name = "tridentfb", 1592 1592 .id_table = trident_devices, 1593 1593 .probe = trident_pci_probe, 1594 - .remove = __devexit_p(trident_pci_remove) 1594 + .remove = trident_pci_remove, 1595 1595 }; 1596 1596 1597 1597 /*
+36 -38
drivers/video/uvesafb.c
··· 36 36 static char v86d_path[PATH_MAX] = "/sbin/v86d"; 37 37 static char v86d_started; /* has v86d been started by uvesafb? */ 38 38 39 - static struct fb_fix_screeninfo uvesafb_fix __devinitdata = { 39 + static struct fb_fix_screeninfo uvesafb_fix = { 40 40 .id = "VESA VGA", 41 41 .type = FB_TYPE_PACKED_PIXELS, 42 42 .accel = FB_ACCEL_NONE, 43 43 .visual = FB_VISUAL_TRUECOLOR, 44 44 }; 45 45 46 - static int mtrr __devinitdata = 3; /* enable mtrr by default */ 47 - static bool blank = 1; /* enable blanking by default */ 48 - static int ypan = 1; /* 0: scroll, 1: ypan, 2: ywrap */ 49 - static bool pmi_setpal __devinitdata = true; /* use PMI for palette changes */ 50 - static bool nocrtc __devinitdata; /* ignore CRTC settings */ 51 - static bool noedid __devinitdata; /* don't try DDC transfers */ 52 - static int vram_remap __devinitdata; /* set amt. of memory to be used */ 53 - static int vram_total __devinitdata; /* set total amount of memory */ 54 - static u16 maxclk __devinitdata; /* maximum pixel clock */ 55 - static u16 maxvf __devinitdata; /* maximum vertical frequency */ 56 - static u16 maxhf __devinitdata; /* maximum horizontal frequency */ 57 - static u16 vbemode __devinitdata; /* force use of a specific VBE mode */ 58 - static char *mode_option __devinitdata; 46 + static int mtrr = 3; /* enable mtrr by default */ 47 + static bool blank = 1; /* enable blanking by default */ 48 + static int ypan = 1; /* 0: scroll, 1: ypan, 2: ywrap */ 49 + static bool pmi_setpal = true; /* use PMI for palette changes */ 50 + static bool nocrtc; /* ignore CRTC settings */ 51 + static bool noedid; /* don't try DDC transfers */ 52 + static int vram_remap; /* set amt. of memory to be used */ 53 + static int vram_total; /* set total amount of memory */ 54 + static u16 maxclk; /* maximum pixel clock */ 55 + static u16 maxvf; /* maximum vertical frequency */ 56 + static u16 maxhf; /* maximum horizontal frequency */ 57 + static u16 vbemode; /* force use of a specific VBE mode */ 58 + static char *mode_option; 59 59 static u8 dac_width = 6; 60 60 61 61 static struct uvesafb_ktask *uvfb_tasks[UVESAFB_TASKS_MAX]; ··· 418 418 uvesafb_free(task); 419 419 } 420 420 421 - static int __devinit uvesafb_vbe_getinfo(struct uvesafb_ktask *task, 422 - struct uvesafb_par *par) 421 + static int uvesafb_vbe_getinfo(struct uvesafb_ktask *task, 422 + struct uvesafb_par *par) 423 423 { 424 424 int err; 425 425 ··· 477 477 return 0; 478 478 } 479 479 480 - static int __devinit uvesafb_vbe_getmodes(struct uvesafb_ktask *task, 481 - struct uvesafb_par *par) 480 + static int uvesafb_vbe_getmodes(struct uvesafb_ktask *task, 481 + struct uvesafb_par *par) 482 482 { 483 483 int off = 0, err; 484 484 u16 *mode; ··· 556 556 * x86 and not x86_64. 557 557 */ 558 558 #ifdef CONFIG_X86_32 559 - static int __devinit uvesafb_vbe_getpmi(struct uvesafb_ktask *task, 560 - struct uvesafb_par *par) 559 + static int uvesafb_vbe_getpmi(struct uvesafb_ktask *task, 560 + struct uvesafb_par *par) 561 561 { 562 562 int i, err; 563 563 ··· 602 602 * Check whether a video mode is supported by the Video BIOS and is 603 603 * compatible with the monitor limits. 604 604 */ 605 - static int __devinit uvesafb_is_valid_mode(struct fb_videomode *mode, 606 - struct fb_info *info) 605 + static int uvesafb_is_valid_mode(struct fb_videomode *mode, 606 + struct fb_info *info) 607 607 { 608 608 if (info->monspecs.gtf) { 609 609 fb_videomode_to_var(&info->var, mode); ··· 618 618 return 1; 619 619 } 620 620 621 - static int __devinit uvesafb_vbe_getedid(struct uvesafb_ktask *task, 622 - struct fb_info *info) 621 + static int uvesafb_vbe_getedid(struct uvesafb_ktask *task, struct fb_info *info) 623 622 { 624 623 struct uvesafb_par *par = info->par; 625 624 int err = 0; ··· 683 684 return err; 684 685 } 685 686 686 - static void __devinit uvesafb_vbe_getmonspecs(struct uvesafb_ktask *task, 687 - struct fb_info *info) 687 + static void uvesafb_vbe_getmonspecs(struct uvesafb_ktask *task, 688 + struct fb_info *info) 688 689 { 689 690 struct uvesafb_par *par = info->par; 690 691 int i; ··· 764 765 return; 765 766 } 766 767 767 - static void __devinit uvesafb_vbe_getstatesize(struct uvesafb_ktask *task, 768 - struct uvesafb_par *par) 768 + static void uvesafb_vbe_getstatesize(struct uvesafb_ktask *task, 769 + struct uvesafb_par *par) 769 770 { 770 771 int err; 771 772 ··· 793 794 par->vbe_state_size = 64 * (task->t.regs.ebx & 0xffff); 794 795 } 795 796 796 - static int __devinit uvesafb_vbe_init(struct fb_info *info) 797 + static int uvesafb_vbe_init(struct fb_info *info) 797 798 { 798 799 struct uvesafb_ktask *task = NULL; 799 800 struct uvesafb_par *par = info->par; ··· 838 839 return err; 839 840 } 840 841 841 - static int __devinit uvesafb_vbe_init_mode(struct fb_info *info) 842 + static int uvesafb_vbe_init_mode(struct fb_info *info) 842 843 { 843 844 struct list_head *pos; 844 845 struct fb_modelist *modelist; ··· 1443 1444 .fb_set_par = uvesafb_set_par, 1444 1445 }; 1445 1446 1446 - static void __devinit uvesafb_init_info(struct fb_info *info, 1447 - struct vbe_mode_ib *mode) 1447 + static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode) 1448 1448 { 1449 1449 unsigned int size_vmode; 1450 1450 unsigned int size_remap; ··· 1538 1540 info->fbops->fb_pan_display = NULL; 1539 1541 } 1540 1542 1541 - static void __devinit uvesafb_init_mtrr(struct fb_info *info) 1543 + static void uvesafb_init_mtrr(struct fb_info *info) 1542 1544 { 1543 1545 #ifdef CONFIG_MTRR 1544 1546 if (mtrr && !(info->fix.smem_start & (PAGE_SIZE - 1))) { ··· 1580 1582 #endif /* CONFIG_MTRR */ 1581 1583 } 1582 1584 1583 - static void __devinit uvesafb_ioremap(struct fb_info *info) 1585 + static void uvesafb_ioremap(struct fb_info *info) 1584 1586 { 1585 1587 #ifdef CONFIG_X86 1586 1588 switch (mtrr) { ··· 1736 1738 .attrs = uvesafb_dev_attrs, 1737 1739 }; 1738 1740 1739 - static int __devinit uvesafb_probe(struct platform_device *dev) 1741 + static int uvesafb_probe(struct platform_device *dev) 1740 1742 { 1741 1743 struct fb_info *info; 1742 1744 struct vbe_mode_ib *mode = NULL; ··· 1880 1882 static struct platform_device *uvesafb_device; 1881 1883 1882 1884 #ifndef MODULE 1883 - static int __devinit uvesafb_setup(char *options) 1885 + static int uvesafb_setup(char *options) 1884 1886 { 1885 1887 char *this_opt; 1886 1888 ··· 1948 1950 1949 1951 static DRIVER_ATTR(v86d, S_IRUGO | S_IWUSR, show_v86d, store_v86d); 1950 1952 1951 - static int __devinit uvesafb_init(void) 1953 + static int uvesafb_init(void) 1952 1954 { 1953 1955 int err; 1954 1956 ··· 1992 1994 1993 1995 module_init(uvesafb_init); 1994 1996 1995 - static void __devexit uvesafb_exit(void) 1997 + static void uvesafb_exit(void) 1996 1998 { 1997 1999 struct uvesafb_ktask *task; 1998 2000
+3 -4
drivers/video/vermilion/vermilion.c
··· 393 393 * Free up allocated resources for a device. 394 394 */ 395 395 396 - static void __devexit vml_pci_remove(struct pci_dev *dev) 396 + static void vml_pci_remove(struct pci_dev *dev) 397 397 { 398 398 struct fb_info *info; 399 399 struct vml_info *vinfo; ··· 452 452 * struct per pipe. Currently we have only one pipe. 453 453 */ 454 454 455 - static int __devinit vml_pci_probe(struct pci_dev *dev, 456 - const struct pci_device_id *id) 455 + static int vml_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 457 456 { 458 457 struct vml_info *vinfo; 459 458 struct fb_info *info; ··· 1059 1060 .name = "vmlfb", 1060 1061 .id_table = vml_ids, 1061 1062 .probe = vml_pci_probe, 1062 - .remove = __devexit_p(vml_pci_remove) 1063 + .remove = vml_pci_remove, 1063 1064 }; 1064 1065 1065 1066 static void __exit vmlfb_cleanup(void)
+3 -3
drivers/video/vfb.c
··· 78 78 vfree(mem); 79 79 } 80 80 81 - static struct fb_var_screeninfo vfb_default __devinitdata = { 81 + static struct fb_var_screeninfo vfb_default = { 82 82 .xres = 640, 83 83 .yres = 480, 84 84 .xres_virtual = 640, ··· 100 100 .vmode = FB_VMODE_NONINTERLACED, 101 101 }; 102 102 103 - static struct fb_fix_screeninfo vfb_fix __devinitdata = { 103 + static struct fb_fix_screeninfo vfb_fix = { 104 104 .id = "Virtual FB", 105 105 .type = FB_TYPE_PACKED_PIXELS, 106 106 .visual = FB_VISUAL_PSEUDOCOLOR, ··· 477 477 * Initialisation 478 478 */ 479 479 480 - static int __devinit vfb_probe(struct platform_device *dev) 480 + static int vfb_probe(struct platform_device *dev) 481 481 { 482 482 struct fb_info *info; 483 483 int retval = -ENOMEM;
+5 -5
drivers/video/vga16fb.c
··· 65 65 66 66 /* --------------------------------------------------------------------- */ 67 67 68 - static struct fb_var_screeninfo vga16fb_defined __devinitdata = { 68 + static struct fb_var_screeninfo vga16fb_defined = { 69 69 .xres = 640, 70 70 .yres = 480, 71 71 .xres_virtual = 640, ··· 85 85 }; 86 86 87 87 /* name should not depend on EGA/VGA */ 88 - static struct fb_fix_screeninfo vga16fb_fix __devinitdata = { 88 + static struct fb_fix_screeninfo vga16fb_fix = { 89 89 .id = "VGA16 VGA", 90 90 .smem_start = VGA_FB_PHYS, 91 91 .smem_len = VGA_FB_PHYS_LEN, ··· 1303 1303 } 1304 1304 #endif 1305 1305 1306 - static int __devinit vga16fb_probe(struct platform_device *dev) 1306 + static int vga16fb_probe(struct platform_device *dev) 1307 1307 { 1308 1308 struct fb_info *info; 1309 1309 struct vga16fb_par *par; ··· 1395 1395 return ret; 1396 1396 } 1397 1397 1398 - static int __devexit vga16fb_remove(struct platform_device *dev) 1398 + static int vga16fb_remove(struct platform_device *dev) 1399 1399 { 1400 1400 struct fb_info *info = platform_get_drvdata(dev); 1401 1401 ··· 1407 1407 1408 1408 static struct platform_driver vga16fb_driver = { 1409 1409 .probe = vga16fb_probe, 1410 - .remove = __devexit_p(vga16fb_remove), 1410 + .remove = vga16fb_remove, 1411 1411 .driver = { 1412 1412 .name = "vga16fb", 1413 1413 },
+5 -5
drivers/video/via/dvi.c
··· 25 25 static void tmds_register_write(int index, u8 data); 26 26 static int tmds_register_read(int index); 27 27 static int tmds_register_read_bytes(int index, u8 *buff, int buff_len); 28 - static void __devinit dvi_get_panel_size_from_DDCv1( 28 + static void dvi_get_panel_size_from_DDCv1( 29 29 struct tmds_chip_information *tmds_chip, 30 30 struct tmds_setting_information *tmds_setting); 31 31 static int viafb_dvi_query_EDID(void); ··· 35 35 return tmds_register_read(device_id_subaddr) == device_id; 36 36 } 37 37 38 - void __devinit viafb_init_dvi_size(struct tmds_chip_information *tmds_chip, 39 - struct tmds_setting_information *tmds_setting) 38 + void viafb_init_dvi_size(struct tmds_chip_information *tmds_chip, 39 + struct tmds_setting_information *tmds_setting) 40 40 { 41 41 DEBUG_MSG(KERN_INFO "viafb_init_dvi_size()\n"); 42 42 ··· 47 47 return; 48 48 } 49 49 50 - bool __devinit viafb_tmds_trasmitter_identify(void) 50 + bool viafb_tmds_trasmitter_identify(void) 51 51 { 52 52 unsigned char sr2a = 0, sr1e = 0, sr3e = 0; 53 53 ··· 285 285 } 286 286 287 287 /* Get Panel Size Using EDID1 Table */ 288 - static void __devinit dvi_get_panel_size_from_DDCv1( 288 + static void dvi_get_panel_size_from_DDCv1( 289 289 struct tmds_chip_information *tmds_chip, 290 290 struct tmds_setting_information *tmds_setting) 291 291 {
+2 -2
drivers/video/via/dvi.h
··· 56 56 int viafb_dvi_sense(void); 57 57 void viafb_dvi_disable(void); 58 58 void viafb_dvi_enable(void); 59 - bool __devinit viafb_tmds_trasmitter_identify(void); 60 - void __devinit viafb_init_dvi_size(struct tmds_chip_information *tmds_chip, 59 + bool viafb_tmds_trasmitter_identify(void); 60 + void viafb_init_dvi_size(struct tmds_chip_information *tmds_chip, 61 61 struct tmds_setting_information *tmds_setting); 62 62 void viafb_dvi_set_mode(const struct fb_var_screeninfo *var, 63 63 u16 cxres, u16 cyres, int iga);
+8 -8
drivers/video/via/hw.c
··· 465 465 static struct via_clock clock; 466 466 467 467 static void load_fix_bit_crtc_reg(void); 468 - static void __devinit init_gfx_chip_info(int chip_type); 469 - static void __devinit init_tmds_chip_info(void); 470 - static void __devinit init_lvds_chip_info(void); 468 + static void init_gfx_chip_info(int chip_type); 469 + static void init_tmds_chip_info(void); 470 + static void init_lvds_chip_info(void); 471 471 static void device_screen_off(void); 472 472 static void device_screen_on(void); 473 473 static void set_display_channel(void); ··· 1507 1507 viafb_set_vclock(PICOS2KHZ(var->pixclock) * 1000, iga); 1508 1508 } 1509 1509 1510 - void __devinit viafb_init_chip_info(int chip_type) 1510 + void viafb_init_chip_info(int chip_type) 1511 1511 { 1512 1512 via_clock_init(&clock, chip_type); 1513 1513 init_gfx_chip_info(chip_type); ··· 1540 1540 } 1541 1541 } 1542 1542 1543 - static void __devinit init_gfx_chip_info(int chip_type) 1543 + static void init_gfx_chip_info(int chip_type) 1544 1544 { 1545 1545 u8 tmp; 1546 1546 ··· 1593 1593 } 1594 1594 } 1595 1595 1596 - static void __devinit init_tmds_chip_info(void) 1596 + static void init_tmds_chip_info(void) 1597 1597 { 1598 1598 viafb_tmds_trasmitter_identify(); 1599 1599 ··· 1638 1638 &viaparinfo->shared->tmds_setting_info); 1639 1639 } 1640 1640 1641 - static void __devinit init_lvds_chip_info(void) 1641 + static void init_lvds_chip_info(void) 1642 1642 { 1643 1643 viafb_lvds_trasmitter_identify(); 1644 1644 viafb_init_lcd_size(); ··· 1672 1672 viaparinfo->chip_info->lvds_chip_info.output_interface); 1673 1673 } 1674 1674 1675 - void __devinit viafb_init_dac(int set_iga) 1675 + void viafb_init_dac(int set_iga) 1676 1676 { 1677 1677 int i; 1678 1678 u8 tmp;
+2 -2
drivers/video/via/hw.h
··· 663 663 int viafb_setmode(void); 664 664 void viafb_fill_var_timing_info(struct fb_var_screeninfo *var, 665 665 const struct fb_videomode *mode); 666 - void __devinit viafb_init_chip_info(int chip_type); 667 - void __devinit viafb_init_dac(int set_iga); 666 + void viafb_init_chip_info(int chip_type); 667 + void viafb_init_dac(int set_iga); 668 668 int viafb_get_refresh(int hres, int vres, u32 float_refresh); 669 669 void viafb_update_device_setting(int hres, int vres, int bpp, int flag); 670 670
+5 -5
drivers/video/via/lcd.c
··· 49 49 }; 50 50 51 51 static bool lvds_identify_integratedlvds(void); 52 - static void __devinit fp_id_to_vindex(int panel_id); 52 + static void fp_id_to_vindex(int panel_id); 53 53 static int lvds_register_read(int index); 54 54 static void load_lcd_scaling(int set_hres, int set_vres, int panel_hres, 55 55 int panel_vres); ··· 81 81 return lvds_register_read(device_id_subaddr) == device_id; 82 82 } 83 83 84 - void __devinit viafb_init_lcd_size(void) 84 + void viafb_init_lcd_size(void) 85 85 { 86 86 DEBUG_MSG(KERN_INFO "viafb_init_lcd_size()\n"); 87 87 ··· 139 139 return true; 140 140 } 141 141 142 - bool __devinit viafb_lvds_trasmitter_identify(void) 142 + bool viafb_lvds_trasmitter_identify(void) 143 143 { 144 144 if (viafb_lvds_identify_vt1636(VIA_PORT_31)) { 145 145 viaparinfo->chip_info->lvds_chip_info.i2c_port = VIA_PORT_31; ··· 180 180 return false; 181 181 } 182 182 183 - static void __devinit fp_id_to_vindex(int panel_id) 183 + static void fp_id_to_vindex(int panel_id) 184 184 { 185 185 DEBUG_MSG(KERN_INFO "fp_get_panel_id()\n"); 186 186 ··· 914 914 plvds_chip_info->output_interface); 915 915 } 916 916 917 - void __devinit viafb_init_lvds_output_interface(struct lvds_chip_information 917 + void viafb_init_lvds_output_interface(struct lvds_chip_information 918 918 *plvds_chip_info, 919 919 struct lvds_setting_information 920 920 *plvds_setting_info)
+3 -3
drivers/video/via/lcd.h
··· 71 71 struct lvds_chip_information *plvds_chip_info); 72 72 void viafb_lcd_disable(void); 73 73 void viafb_lcd_enable(void); 74 - void __devinit viafb_init_lcd_size(void); 75 - void __devinit viafb_init_lvds_output_interface(struct lvds_chip_information 74 + void viafb_init_lcd_size(void); 75 + void viafb_init_lvds_output_interface(struct lvds_chip_information 76 76 *plvds_chip_info, 77 77 struct lvds_setting_information 78 78 *plvds_setting_info); 79 79 void viafb_lcd_set_mode(const struct fb_var_screeninfo *var, u16 cxres, 80 80 u16 cyres, struct lvds_setting_information *plvds_setting_info, 81 81 struct lvds_chip_information *plvds_chip_info); 82 - bool __devinit viafb_lvds_trasmitter_identify(void); 82 + bool viafb_lvds_trasmitter_identify(void); 83 83 void viafb_init_lvds_output_interface(struct lvds_chip_information 84 84 *plvds_chip_info, 85 85 struct lvds_setting_information
+9 -10
drivers/video/via/via-core.c
··· 80 80 */ 81 81 static u32 viafb_enabled_ints; 82 82 83 - static void __devinit viafb_int_init(void) 83 + static void viafb_int_init(void) 84 84 { 85 85 viafb_enabled_ints = 0; 86 86 ··· 475 475 /* 476 476 * Figure out and map our MMIO regions. 477 477 */ 478 - static int __devinit via_pci_setup_mmio(struct viafb_dev *vdev) 478 + static int via_pci_setup_mmio(struct viafb_dev *vdev) 479 479 { 480 480 int ret; 481 481 /* ··· 550 550 }; 551 551 #define N_SUBDEVS ARRAY_SIZE(viafb_subdevs) 552 552 553 - static int __devinit via_create_subdev(struct viafb_dev *vdev, 554 - struct viafb_subdev_info *info) 553 + static int via_create_subdev(struct viafb_dev *vdev, 554 + struct viafb_subdev_info *info) 555 555 { 556 556 int ret; 557 557 ··· 573 573 return ret; 574 574 } 575 575 576 - static int __devinit via_setup_subdevs(struct viafb_dev *vdev) 576 + static int via_setup_subdevs(struct viafb_dev *vdev) 577 577 { 578 578 int i; 579 579 ··· 671 671 } 672 672 #endif /* CONFIG_PM */ 673 673 674 - static int __devinit via_pci_probe(struct pci_dev *pdev, 675 - const struct pci_device_id *ent) 674 + static int via_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 676 675 { 677 676 int ret; 678 677 ··· 715 716 return ret; 716 717 } 717 718 718 - static void __devexit via_pci_remove(struct pci_dev *pdev) 719 + static void via_pci_remove(struct pci_dev *pdev) 719 720 { 720 721 via_teardown_subdevs(); 721 722 via_fb_pci_remove(pdev); ··· 724 725 } 725 726 726 727 727 - static struct pci_device_id via_pci_table[] __devinitdata = { 728 + static struct pci_device_id via_pci_table[] = { 728 729 { PCI_DEVICE(PCI_VENDOR_ID_VIA, UNICHROME_CLE266_DID), 729 730 .driver_data = UNICHROME_CLE266 }, 730 731 { PCI_DEVICE(PCI_VENDOR_ID_VIA, UNICHROME_K400_DID), ··· 759 760 .name = "viafb", 760 761 .id_table = via_pci_table, 761 762 .probe = via_pci_probe, 762 - .remove = __devexit_p(via_pci_remove), 763 + .remove = via_pci_remove, 763 764 #ifdef CONFIG_PM 764 765 .suspend = via_suspend, 765 766 .resume = via_resume,
+1 -1
drivers/video/via/via-gpio.c
··· 212 212 /* 213 213 * Platform device stuff. 214 214 */ 215 - static __devinit int viafb_gpio_probe(struct platform_device *platdev) 215 + static int viafb_gpio_probe(struct platform_device *platdev) 216 216 { 217 217 struct viafb_dev *vdev = platdev->dev.platform_data; 218 218 struct via_port_cfg *port_cfg = vdev->port_cfg;
+6 -6
drivers/video/via/viafbdev.c
··· 1072 1072 return 0; 1073 1073 } 1074 1074 1075 - static int __devinit parse_port(char *opt_str, int *output_interface) 1075 + static int parse_port(char *opt_str, int *output_interface) 1076 1076 { 1077 1077 if (!strncmp(opt_str, "DVP0", 4)) 1078 1078 *output_interface = INTERFACE_DVP0; ··· 1089 1089 return 0; 1090 1090 } 1091 1091 1092 - static void __devinit parse_lcd_port(void) 1092 + static void parse_lcd_port(void) 1093 1093 { 1094 1094 parse_port(viafb_lcd_port, &viaparinfo->chip_info->lvds_chip_info. 1095 1095 output_interface); ··· 1102 1102 output_interface); 1103 1103 } 1104 1104 1105 - static void __devinit parse_dvi_port(void) 1105 + static void parse_dvi_port(void) 1106 1106 { 1107 1107 parse_port(viafb_dvi_port, &viaparinfo->chip_info->tmds_chip_info. 1108 1108 output_interface); ··· 1727 1727 1728 1728 #endif 1729 1729 1730 - static void __devinit i2c_bus_probe(struct viafb_shared *shared) 1730 + static void i2c_bus_probe(struct viafb_shared *shared) 1731 1731 { 1732 1732 /* should be always CRT */ 1733 1733 printk(KERN_INFO "viafb: Probing I2C bus 0x26\n"); ··· 1753 1753 via_aux_free(shared->i2c_2C); 1754 1754 } 1755 1755 1756 - int __devinit via_fb_pci_probe(struct viafb_dev *vdev) 1756 + int via_fb_pci_probe(struct viafb_dev *vdev) 1757 1757 { 1758 1758 u32 default_xres, default_yres; 1759 1759 struct fb_var_screeninfo default_var; ··· 1945 1945 return rc; 1946 1946 } 1947 1947 1948 - void __devexit via_fb_pci_remove(struct pci_dev *pdev) 1948 + void via_fb_pci_remove(struct pci_dev *pdev) 1949 1949 { 1950 1950 DEBUG_MSG(KERN_INFO "via_pci_remove!\n"); 1951 1951 fb_dealloc_cmap(&viafbinfo->cmap);
+3 -3
drivers/video/vt8500lcdfb.c
··· 273 273 return IRQ_HANDLED; 274 274 } 275 275 276 - static int __devinit vt8500lcd_probe(struct platform_device *pdev) 276 + static int vt8500lcd_probe(struct platform_device *pdev) 277 277 { 278 278 struct vt8500lcd_info *fbi; 279 279 struct resource *res; ··· 469 469 return ret; 470 470 } 471 471 472 - static int __devexit vt8500lcd_remove(struct platform_device *pdev) 472 + static int vt8500lcd_remove(struct platform_device *pdev) 473 473 { 474 474 struct vt8500lcd_info *fbi = platform_get_drvdata(pdev); 475 475 struct resource *res; ··· 505 505 506 506 static struct platform_driver vt8500lcd_driver = { 507 507 .probe = vt8500lcd_probe, 508 - .remove = __devexit_p(vt8500lcd_remove), 508 + .remove = vt8500lcd_remove, 509 509 .driver = { 510 510 .owner = THIS_MODULE, 511 511 .name = "vt8500-lcd",
+4 -4
drivers/video/vt8623fb.c
··· 660 660 661 661 /* PCI probe */ 662 662 663 - static int __devinit vt8623_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 663 + static int vt8623_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 664 664 { 665 665 struct pci_bus_region bus_reg; 666 666 struct resource vga_res; ··· 807 807 808 808 /* PCI remove */ 809 809 810 - static void __devexit vt8623_pci_remove(struct pci_dev *dev) 810 + static void vt8623_pci_remove(struct pci_dev *dev) 811 811 { 812 812 struct fb_info *info = pci_get_drvdata(dev); 813 813 ··· 906 906 907 907 /* List of boards that we are trying to support */ 908 908 909 - static struct pci_device_id vt8623_devices[] __devinitdata = { 909 + static struct pci_device_id vt8623_devices[] = { 910 910 {PCI_DEVICE(PCI_VENDOR_ID_VIA, 0x3122)}, 911 911 {0, 0, 0, 0, 0, 0, 0} 912 912 }; ··· 917 917 .name = "vt8623fb", 918 918 .id_table = vt8623_devices, 919 919 .probe = vt8623_pci_probe, 920 - .remove = __devexit_p(vt8623_pci_remove), 920 + .remove = vt8623_pci_remove, 921 921 .suspend = vt8623_pci_suspend, 922 922 .resume = vt8623_pci_resume, 923 923 };
+5 -5
drivers/video/w100fb.c
··· 54 54 static void w100_update_disable(void); 55 55 static void calc_hsync(struct w100fb_par *par); 56 56 static void w100_init_graphic_engine(struct w100fb_par *par); 57 - struct w100_pll_info *w100_get_xtal_table(unsigned int freq) __devinit; 57 + struct w100_pll_info *w100_get_xtal_table(unsigned int freq); 58 58 59 59 /* Pseudo palette size */ 60 60 #define MAX_PALETTES 16 ··· 630 630 #endif 631 631 632 632 633 - int __devinit w100fb_probe(struct platform_device *pdev) 633 + int w100fb_probe(struct platform_device *pdev) 634 634 { 635 635 int err = -EIO; 636 636 struct w100fb_mach_info *inf; ··· 783 783 } 784 784 785 785 786 - static int __devexit w100fb_remove(struct platform_device *pdev) 786 + static int w100fb_remove(struct platform_device *pdev) 787 787 { 788 788 struct fb_info *info = platform_get_drvdata(pdev); 789 789 struct w100fb_par *par=info->par; ··· 1021 1021 { 0 }, 1022 1022 }; 1023 1023 1024 - struct w100_pll_info __devinit *w100_get_xtal_table(unsigned int freq) 1024 + struct w100_pll_info *w100_get_xtal_table(unsigned int freq) 1025 1025 { 1026 1026 struct pll_entries *pll_entry = w100_pll_tables; 1027 1027 ··· 1624 1624 1625 1625 static struct platform_driver w100fb_driver = { 1626 1626 .probe = w100fb_probe, 1627 - .remove = __devexit_p(w100fb_remove), 1627 + .remove = w100fb_remove, 1628 1628 .suspend = w100fb_suspend, 1629 1629 .resume = w100fb_resume, 1630 1630 .driver = {
+3 -3
drivers/video/wm8505fb.c
··· 260 260 .fb_blank = wm8505fb_blank, 261 261 }; 262 262 263 - static int __devinit wm8505fb_probe(struct platform_device *pdev) 263 + static int wm8505fb_probe(struct platform_device *pdev) 264 264 { 265 265 struct wm8505fb_info *fbi; 266 266 struct resource *res; ··· 431 431 return ret; 432 432 } 433 433 434 - static int __devexit wm8505fb_remove(struct platform_device *pdev) 434 + static int wm8505fb_remove(struct platform_device *pdev) 435 435 { 436 436 struct wm8505fb_info *fbi = platform_get_drvdata(pdev); 437 437 struct resource *res; ··· 462 462 463 463 static struct platform_driver wm8505fb_driver = { 464 464 .probe = wm8505fb_probe, 465 - .remove = __devexit_p(wm8505fb_remove), 465 + .remove = wm8505fb_remove, 466 466 .driver = { 467 467 .owner = THIS_MODULE, 468 468 .name = DRIVER_NAME,
+3 -3
drivers/video/wmt_ge_rops.c
··· 124 124 } 125 125 EXPORT_SYMBOL_GPL(wmt_ge_sync); 126 126 127 - static int __devinit wmt_ge_rops_probe(struct platform_device *pdev) 127 + static int wmt_ge_rops_probe(struct platform_device *pdev) 128 128 { 129 129 struct resource *res; 130 130 ··· 152 152 return 0; 153 153 } 154 154 155 - static int __devexit wmt_ge_rops_remove(struct platform_device *pdev) 155 + static int wmt_ge_rops_remove(struct platform_device *pdev) 156 156 { 157 157 iounmap(regbase); 158 158 return 0; ··· 165 165 166 166 static struct platform_driver wmt_ge_rops_driver = { 167 167 .probe = wmt_ge_rops_probe, 168 - .remove = __devexit_p(wmt_ge_rops_remove), 168 + .remove = wmt_ge_rops_remove, 169 169 .driver = { 170 170 .owner = THIS_MODULE, 171 171 .name = "wmt_ge_rops",
+3 -4
drivers/video/xen-fbfront.c
··· 358 358 return IRQ_HANDLED; 359 359 } 360 360 361 - static int __devinit xenfb_probe(struct xenbus_device *dev, 362 - const struct xenbus_device_id *id) 361 + static int xenfb_probe(struct xenbus_device *dev, 362 + const struct xenbus_device_id *id) 363 363 { 364 364 struct xenfb_info *info; 365 365 struct fb_info *fb_info; ··· 487 487 return ret; 488 488 } 489 489 490 - static __devinit void 491 - xenfb_make_preferred_console(void) 490 + static void xenfb_make_preferred_console(void) 492 491 { 493 492 struct console *c; 494 493
+4 -4
drivers/video/xilinxfb.c
··· 403 403 * OF bus binding 404 404 */ 405 405 406 - static int __devinit xilinxfb_of_probe(struct platform_device *op) 406 + static int xilinxfb_of_probe(struct platform_device *op) 407 407 { 408 408 const u32 *prop; 409 409 u32 *p; ··· 485 485 return -ENODEV; 486 486 } 487 487 488 - static int __devexit xilinxfb_of_remove(struct platform_device *op) 488 + static int xilinxfb_of_remove(struct platform_device *op) 489 489 { 490 490 return xilinxfb_release(&op->dev); 491 491 } 492 492 493 493 /* Match table for of_platform binding */ 494 - static struct of_device_id xilinxfb_of_match[] __devinitdata = { 494 + static struct of_device_id xilinxfb_of_match[] = { 495 495 { .compatible = "xlnx,xps-tft-1.00.a", }, 496 496 { .compatible = "xlnx,xps-tft-2.00.a", }, 497 497 { .compatible = "xlnx,xps-tft-2.01.a", }, ··· 503 503 504 504 static struct platform_driver xilinxfb_of_driver = { 505 505 .probe = xilinxfb_of_probe, 506 - .remove = __devexit_p(xilinxfb_of_remove), 506 + .remove = xilinxfb_of_remove, 507 507 .driver = { 508 508 .name = DRIVER_NAME, 509 509 .owner = THIS_MODULE,