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

Drivers: atm: 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>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+152 -175
+30 -23
drivers/atm/ambassador.c
··· 1507 1507 1508 1508 /********** creation of communication queues **********/ 1509 1509 1510 - static int __devinit create_queues (amb_dev * dev, unsigned int cmds, 1511 - unsigned int txs, unsigned int * rxs, 1512 - unsigned int * rx_buffer_sizes) { 1510 + static int create_queues(amb_dev *dev, unsigned int cmds, unsigned int txs, 1511 + unsigned int *rxs, unsigned int *rx_buffer_sizes) 1512 + { 1513 1513 unsigned char pool; 1514 1514 size_t total = 0; 1515 1515 void * memory; ··· 1737 1737 return res; 1738 1738 } 1739 1739 1740 - static int __devinit do_loader_command (volatile loader_block * lb, 1741 - const amb_dev * dev, loader_command cmd) { 1740 + static int do_loader_command(volatile loader_block *lb, const amb_dev *dev, 1741 + loader_command cmd) 1742 + { 1742 1743 1743 1744 unsigned long timeout; 1744 1745 ··· 1794 1793 1795 1794 /* loader: determine loader version */ 1796 1795 1797 - static int __devinit get_loader_version (loader_block * lb, 1798 - const amb_dev * dev, u32 * version) { 1796 + static int get_loader_version(loader_block *lb, const amb_dev *dev, 1797 + u32 *version) 1798 + { 1799 1799 int res; 1800 1800 1801 1801 PRINTD (DBG_FLOW|DBG_LOAD, "get_loader_version"); ··· 1811 1809 1812 1810 /* loader: write memory data blocks */ 1813 1811 1814 - static int __devinit loader_write (loader_block* lb, 1815 - const amb_dev *dev, 1816 - const struct ihex_binrec *rec) { 1812 + static int loader_write(loader_block *lb, const amb_dev *dev, 1813 + const struct ihex_binrec *rec) 1814 + { 1817 1815 transfer_block * tb = &lb->payload.transfer; 1818 1816 1819 1817 PRINTD (DBG_FLOW|DBG_LOAD, "loader_write"); ··· 1826 1824 1827 1825 /* loader: verify memory data blocks */ 1828 1826 1829 - static int __devinit loader_verify (loader_block * lb, 1830 - const amb_dev *dev, 1831 - const struct ihex_binrec *rec) { 1827 + static int loader_verify(loader_block *lb, const amb_dev *dev, 1828 + const struct ihex_binrec *rec) 1829 + { 1832 1830 transfer_block * tb = &lb->payload.transfer; 1833 1831 int res; 1834 1832 ··· 1844 1842 1845 1843 /* loader: start microcode */ 1846 1844 1847 - static int __devinit loader_start (loader_block * lb, 1848 - const amb_dev * dev, u32 address) { 1845 + static int loader_start(loader_block *lb, const amb_dev *dev, u32 address) 1846 + { 1849 1847 PRINTD (DBG_FLOW|DBG_LOAD, "loader_start"); 1850 1848 1851 1849 lb->payload.start = cpu_to_be32 (address); ··· 1920 1918 1921 1919 /********** transfer and start the microcode **********/ 1922 1920 1923 - static int __devinit ucode_init (loader_block * lb, amb_dev * dev) { 1921 + static int ucode_init(loader_block *lb, amb_dev *dev) 1922 + { 1924 1923 const struct firmware *fw; 1925 1924 unsigned long start_address; 1926 1925 const struct ihex_binrec *rec; ··· 1983 1980 return cpu_to_be32 (virt_to_bus (addr)); 1984 1981 } 1985 1982 1986 - static int __devinit amb_talk (amb_dev * dev) { 1983 + static int amb_talk(amb_dev *dev) 1984 + { 1987 1985 adap_talk_block a; 1988 1986 unsigned char pool; 1989 1987 unsigned long timeout; ··· 2031 2027 } 2032 2028 2033 2029 // get microcode version 2034 - static void __devinit amb_ucode_version (amb_dev * dev) { 2030 + static void amb_ucode_version(amb_dev *dev) 2031 + { 2035 2032 u32 major; 2036 2033 u32 minor; 2037 2034 command cmd; ··· 2047 2042 } 2048 2043 2049 2044 // get end station address 2050 - static void __devinit amb_esi (amb_dev * dev, u8 * esi) { 2045 + static void amb_esi(amb_dev *dev, u8 *esi) 2046 + { 2051 2047 u32 lower4; 2052 2048 u16 upper2; 2053 2049 command cmd; ··· 2094 2088 return; 2095 2089 } 2096 2090 2097 - static int __devinit amb_init (amb_dev * dev) 2091 + static int amb_init(amb_dev *dev) 2098 2092 { 2099 2093 loader_block lb; 2100 2094 ··· 2190 2184 } 2191 2185 } 2192 2186 2193 - static int __devinit amb_probe(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent) 2187 + static int amb_probe(struct pci_dev *pci_dev, 2188 + const struct pci_device_id *pci_ent) 2194 2189 { 2195 2190 amb_dev * dev; 2196 2191 int err; ··· 2292 2285 } 2293 2286 2294 2287 2295 - static void __devexit amb_remove_one(struct pci_dev *pci_dev) 2288 + static void amb_remove_one(struct pci_dev *pci_dev) 2296 2289 { 2297 2290 struct amb_dev *dev; 2298 2291 ··· 2386 2379 static struct pci_driver amb_driver = { 2387 2380 .name = "amb", 2388 2381 .probe = amb_probe, 2389 - .remove = __devexit_p(amb_remove_one), 2382 + .remove = amb_remove_one, 2390 2383 .id_table = amb_pci_tbl, 2391 2384 }; 2392 2385
+9 -9
drivers/atm/eni.c
··· 1567 1567 /*--------------------------------- entries ---------------------------------*/ 1568 1568 1569 1569 1570 - static char * const media_name[] __devinitconst = { 1570 + static char * const media_name[] = { 1571 1571 "MMF", "SMF", "MMF", "03?", /* 0- 3 */ 1572 1572 "UTP", "05?", "06?", "07?", /* 4- 7 */ 1573 1573 "TAXI","09?", "10?", "11?", /* 8-11 */ ··· 1591 1591 } }) 1592 1592 1593 1593 1594 - static int __devinit get_esi_asic(struct atm_dev *dev) 1594 + static int get_esi_asic(struct atm_dev *dev) 1595 1595 { 1596 1596 struct eni_dev *eni_dev; 1597 1597 unsigned char tonga; ··· 1683 1683 #undef GET_SEPROM 1684 1684 1685 1685 1686 - static int __devinit get_esi_fpga(struct atm_dev *dev, void __iomem *base) 1686 + static int get_esi_fpga(struct atm_dev *dev, void __iomem *base) 1687 1687 { 1688 1688 void __iomem *mac_base; 1689 1689 int i; ··· 1694 1694 } 1695 1695 1696 1696 1697 - static int __devinit eni_do_init(struct atm_dev *dev) 1697 + static int eni_do_init(struct atm_dev *dev) 1698 1698 { 1699 1699 struct midway_eprom __iomem *eprom; 1700 1700 struct eni_dev *eni_dev; ··· 1797 1797 iounmap(ed->ioaddr); 1798 1798 } 1799 1799 1800 - static int __devinit eni_start(struct atm_dev *dev) 1800 + static int eni_start(struct atm_dev *dev) 1801 1801 { 1802 1802 struct eni_dev *eni_dev; 1803 1803 ··· 2226 2226 }; 2227 2227 2228 2228 2229 - static int __devinit eni_init_one(struct pci_dev *pci_dev, 2230 - const struct pci_device_id *ent) 2229 + static int eni_init_one(struct pci_dev *pci_dev, 2230 + const struct pci_device_id *ent) 2231 2231 { 2232 2232 struct atm_dev *dev; 2233 2233 struct eni_dev *eni_dev; ··· 2292 2292 MODULE_DEVICE_TABLE(pci,eni_pci_tbl); 2293 2293 2294 2294 2295 - static void __devexit eni_remove_one(struct pci_dev *pdev) 2295 + static void eni_remove_one(struct pci_dev *pdev) 2296 2296 { 2297 2297 struct atm_dev *dev = pci_get_drvdata(pdev); 2298 2298 struct eni_dev *ed = ENI_DEV(dev); ··· 2310 2310 .name = DEV_LABEL, 2311 2311 .id_table = eni_pci_tbl, 2312 2312 .probe = eni_init_one, 2313 - .remove = __devexit_p(eni_remove_one), 2313 + .remove = eni_remove_one, 2314 2314 }; 2315 2315 2316 2316
+16 -16
drivers/atm/firestream.c
··· 252 252 }; 253 253 254 254 255 - static struct reginit_item PHY_NTC_INIT[] __devinitdata = { 255 + static struct reginit_item PHY_NTC_INIT[] = { 256 256 { PHY_CLEARALL, 0x40 }, 257 257 { 0x12, 0x0001 }, 258 258 { 0x13, 0x7605 }, ··· 1295 1295 }; 1296 1296 1297 1297 1298 - static void __devinit undocumented_pci_fix (struct pci_dev *pdev) 1298 + static void undocumented_pci_fix(struct pci_dev *pdev) 1299 1299 { 1300 1300 u32 tint; 1301 1301 ··· 1319 1319 * PHY routines * 1320 1320 **************************************************************************/ 1321 1321 1322 - static void __devinit write_phy (struct fs_dev *dev, int regnum, int val) 1322 + static void write_phy(struct fs_dev *dev, int regnum, int val) 1323 1323 { 1324 1324 submit_command (dev, &dev->hp_txq, QE_CMD_PRP_WR | QE_CMD_IMM_INQ, 1325 1325 regnum, val, 0); 1326 1326 } 1327 1327 1328 - static int __devinit init_phy (struct fs_dev *dev, struct reginit_item *reginit) 1328 + static int init_phy(struct fs_dev *dev, struct reginit_item *reginit) 1329 1329 { 1330 1330 int i; 1331 1331 ··· 1381 1381 } 1382 1382 } 1383 1383 1384 - static void __devinit *aligned_kmalloc (int size, gfp_t flags, int alignment) 1384 + static void *aligned_kmalloc(int size, gfp_t flags, int alignment) 1385 1385 { 1386 1386 void *t; 1387 1387 ··· 1398 1398 return NULL; 1399 1399 } 1400 1400 1401 - static int __devinit init_q (struct fs_dev *dev, 1402 - struct queue *txq, int queue, int nentries, int is_rq) 1401 + static int init_q(struct fs_dev *dev, struct queue *txq, int queue, 1402 + int nentries, int is_rq) 1403 1403 { 1404 1404 int sz = nentries * sizeof (struct FS_QENTRY); 1405 1405 struct FS_QENTRY *p; ··· 1434 1434 } 1435 1435 1436 1436 1437 - static int __devinit init_fp (struct fs_dev *dev, 1438 - struct freepool *fp, int queue, int bufsize, int nr_buffers) 1437 + static int init_fp(struct fs_dev *dev, struct freepool *fp, int queue, 1438 + int bufsize, int nr_buffers) 1439 1439 { 1440 1440 func_enter (); 1441 1441 ··· 1528 1528 fs_dprintk (FS_DEBUG_QUEUE, "Added %d entries. \n", n); 1529 1529 } 1530 1530 1531 - static void __devexit free_queue (struct fs_dev *dev, struct queue *txq) 1531 + static void free_queue(struct fs_dev *dev, struct queue *txq) 1532 1532 { 1533 1533 func_enter (); 1534 1534 ··· 1544 1544 func_exit (); 1545 1545 } 1546 1546 1547 - static void __devexit free_freepool (struct fs_dev *dev, struct freepool *fp) 1547 + static void free_freepool(struct fs_dev *dev, struct freepool *fp) 1548 1548 { 1549 1549 func_enter (); 1550 1550 ··· 1662 1662 } 1663 1663 #endif 1664 1664 1665 - static int __devinit fs_init (struct fs_dev *dev) 1665 + static int fs_init(struct fs_dev *dev) 1666 1666 { 1667 1667 struct pci_dev *pci_dev; 1668 1668 int isr, to; ··· 1897 1897 return 1; 1898 1898 } 1899 1899 1900 - static int __devinit firestream_init_one (struct pci_dev *pci_dev, 1901 - const struct pci_device_id *ent) 1900 + static int firestream_init_one(struct pci_dev *pci_dev, 1901 + const struct pci_device_id *ent) 1902 1902 { 1903 1903 struct atm_dev *atm_dev; 1904 1904 struct fs_dev *fs_dev; ··· 1934 1934 return -ENODEV; 1935 1935 } 1936 1936 1937 - static void __devexit firestream_remove_one (struct pci_dev *pdev) 1937 + static void firestream_remove_one(struct pci_dev *pdev) 1938 1938 { 1939 1939 int i; 1940 1940 struct fs_dev *dev, *nxtdev; ··· 2038 2038 .name = "firestream", 2039 2039 .id_table = firestream_pci_tbl, 2040 2040 .probe = firestream_init_one, 2041 - .remove = __devexit_p(firestream_remove_one), 2041 + .remove = firestream_remove_one, 2042 2042 }; 2043 2043 2044 2044 static int __init firestream_init_module (void)
+27 -43
drivers/atm/fore200e.c
··· 527 527 } 528 528 529 529 530 - static int __devinit 531 - fore200e_pca_map(struct fore200e* fore200e) 530 + static int fore200e_pca_map(struct fore200e* fore200e) 532 531 { 533 532 DPRINTK(2, "device %s being mapped in memory\n", fore200e->name); 534 533 ··· 560 561 } 561 562 562 563 563 - static int __devinit 564 - fore200e_pca_configure(struct fore200e* fore200e) 564 + static int fore200e_pca_configure(struct fore200e *fore200e) 565 565 { 566 566 struct pci_dev* pci_dev = (struct pci_dev*)fore200e->bus_dev; 567 567 u8 master_ctrl, latency; ··· 2026 2028 } 2027 2029 2028 2030 2029 - static int __devinit 2030 - fore200e_irq_request(struct fore200e* fore200e) 2031 + static int fore200e_irq_request(struct fore200e *fore200e) 2031 2032 { 2032 2033 if (request_irq(fore200e->irq, fore200e_interrupt, IRQF_SHARED, fore200e->name, fore200e->atm_dev) < 0) { 2033 2034 ··· 2048 2051 } 2049 2052 2050 2053 2051 - static int __devinit 2052 - fore200e_get_esi(struct fore200e* fore200e) 2054 + static int fore200e_get_esi(struct fore200e *fore200e) 2053 2055 { 2054 2056 struct prom_data* prom = kzalloc(sizeof(struct prom_data), GFP_KERNEL | GFP_DMA); 2055 2057 int ok, i; ··· 2077 2081 } 2078 2082 2079 2083 2080 - static int __devinit 2081 - fore200e_alloc_rx_buf(struct fore200e* fore200e) 2084 + static int fore200e_alloc_rx_buf(struct fore200e *fore200e) 2082 2085 { 2083 2086 int scheme, magn, nbr, size, i; 2084 2087 ··· 2141 2146 } 2142 2147 2143 2148 2144 - static int __devinit 2145 - fore200e_init_bs_queue(struct fore200e* fore200e) 2149 + static int fore200e_init_bs_queue(struct fore200e *fore200e) 2146 2150 { 2147 2151 int scheme, magn, i; 2148 2152 ··· 2203 2209 } 2204 2210 2205 2211 2206 - static int __devinit 2207 - fore200e_init_rx_queue(struct fore200e* fore200e) 2212 + static int fore200e_init_rx_queue(struct fore200e *fore200e) 2208 2213 { 2209 2214 struct host_rxq* rxq = &fore200e->host_rxq; 2210 2215 struct cp_rxq_entry __iomem * cp_entry; ··· 2262 2269 } 2263 2270 2264 2271 2265 - static int __devinit 2266 - fore200e_init_tx_queue(struct fore200e* fore200e) 2272 + static int fore200e_init_tx_queue(struct fore200e *fore200e) 2267 2273 { 2268 2274 struct host_txq* txq = &fore200e->host_txq; 2269 2275 struct cp_txq_entry __iomem * cp_entry; ··· 2324 2332 } 2325 2333 2326 2334 2327 - static int __devinit 2328 - fore200e_init_cmd_queue(struct fore200e* fore200e) 2335 + static int fore200e_init_cmd_queue(struct fore200e *fore200e) 2329 2336 { 2330 2337 struct host_cmdq* cmdq = &fore200e->host_cmdq; 2331 2338 struct cp_cmdq_entry __iomem * cp_entry; ··· 2365 2374 } 2366 2375 2367 2376 2368 - static void __devinit 2369 - fore200e_param_bs_queue(struct fore200e* fore200e, 2370 - enum buffer_scheme scheme, enum buffer_magn magn, 2371 - int queue_length, int pool_size, int supply_blksize) 2377 + static void fore200e_param_bs_queue(struct fore200e *fore200e, 2378 + enum buffer_scheme scheme, 2379 + enum buffer_magn magn, int queue_length, 2380 + int pool_size, int supply_blksize) 2372 2381 { 2373 2382 struct bs_spec __iomem * bs_spec = &fore200e->cp_queues->init.bs_spec[ scheme ][ magn ]; 2374 2383 ··· 2379 2388 } 2380 2389 2381 2390 2382 - static int __devinit 2383 - fore200e_initialize(struct fore200e* fore200e) 2391 + static int fore200e_initialize(struct fore200e *fore200e) 2384 2392 { 2385 2393 struct cp_queues __iomem * cpq; 2386 2394 int ok, scheme, magn; ··· 2430 2440 } 2431 2441 2432 2442 2433 - static void __devinit 2434 - fore200e_monitor_putc(struct fore200e* fore200e, char c) 2443 + static void fore200e_monitor_putc(struct fore200e *fore200e, char c) 2435 2444 { 2436 2445 struct cp_monitor __iomem * monitor = fore200e->cp_monitor; 2437 2446 ··· 2441 2452 } 2442 2453 2443 2454 2444 - static int __devinit 2445 - fore200e_monitor_getc(struct fore200e* fore200e) 2455 + static int fore200e_monitor_getc(struct fore200e *fore200e) 2446 2456 { 2447 2457 struct cp_monitor __iomem * monitor = fore200e->cp_monitor; 2448 2458 unsigned long timeout = jiffies + msecs_to_jiffies(50); ··· 2465 2477 } 2466 2478 2467 2479 2468 - static void __devinit 2469 - fore200e_monitor_puts(struct fore200e* fore200e, char* str) 2480 + static void fore200e_monitor_puts(struct fore200e *fore200e, char *str) 2470 2481 { 2471 2482 while (*str) { 2472 2483 ··· 2484 2497 #define FW_EXT "_ecd.bin2" 2485 2498 #endif 2486 2499 2487 - static int __devinit 2488 - fore200e_load_and_start_fw(struct fore200e* fore200e) 2500 + static int fore200e_load_and_start_fw(struct fore200e *fore200e) 2489 2501 { 2490 2502 const struct firmware *firmware; 2491 2503 struct device *device; ··· 2552 2566 } 2553 2567 2554 2568 2555 - static int __devinit 2556 - fore200e_register(struct fore200e* fore200e, struct device *parent) 2569 + static int fore200e_register(struct fore200e *fore200e, struct device *parent) 2557 2570 { 2558 2571 struct atm_dev* atm_dev; 2559 2572 ··· 2578 2593 } 2579 2594 2580 2595 2581 - static int __devinit 2582 - fore200e_init(struct fore200e* fore200e, struct device *parent) 2596 + static int fore200e_init(struct fore200e *fore200e, struct device *parent) 2583 2597 { 2584 2598 if (fore200e_register(fore200e, parent) < 0) 2585 2599 return -ENODEV; ··· 2628 2644 2629 2645 #ifdef CONFIG_SBUS 2630 2646 static const struct of_device_id fore200e_sba_match[]; 2631 - static int __devinit fore200e_sba_probe(struct platform_device *op) 2647 + static int fore200e_sba_probe(struct platform_device *op) 2632 2648 { 2633 2649 const struct of_device_id *match; 2634 2650 const struct fore200e_bus *bus; ··· 2665 2681 return 0; 2666 2682 } 2667 2683 2668 - static int __devexit fore200e_sba_remove(struct platform_device *op) 2684 + static int fore200e_sba_remove(struct platform_device *op) 2669 2685 { 2670 2686 struct fore200e *fore200e = dev_get_drvdata(&op->dev); 2671 2687 ··· 2691 2707 .of_match_table = fore200e_sba_match, 2692 2708 }, 2693 2709 .probe = fore200e_sba_probe, 2694 - .remove = __devexit_p(fore200e_sba_remove), 2710 + .remove = fore200e_sba_remove, 2695 2711 }; 2696 2712 #endif 2697 2713 2698 2714 #ifdef CONFIG_PCI 2699 - static int __devinit 2700 - fore200e_pca_detect(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent) 2715 + static int fore200e_pca_detect(struct pci_dev *pci_dev, 2716 + const struct pci_device_id *pci_ent) 2701 2717 { 2702 2718 const struct fore200e_bus* bus = (struct fore200e_bus*) pci_ent->driver_data; 2703 2719 struct fore200e* fore200e; ··· 2750 2766 } 2751 2767 2752 2768 2753 - static void __devexit fore200e_pca_remove_one(struct pci_dev *pci_dev) 2769 + static void fore200e_pca_remove_one(struct pci_dev *pci_dev) 2754 2770 { 2755 2771 struct fore200e *fore200e; 2756 2772 ··· 2773 2789 static struct pci_driver fore200e_pca_driver = { 2774 2790 .name = "fore_200e", 2775 2791 .probe = fore200e_pca_detect, 2776 - .remove = __devexit_p(fore200e_pca_remove_one), 2792 + .remove = fore200e_pca_remove_one, 2777 2793 .id_table = fore200e_pca_tbl, 2778 2794 }; 2779 2795 #endif
+13 -23
drivers/atm/he.c
··· 349 349 return NULL; 350 350 } 351 351 352 - static int __devinit 353 - he_init_one(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent) 352 + static int he_init_one(struct pci_dev *pci_dev, 353 + const struct pci_device_id *pci_ent) 354 354 { 355 355 struct atm_dev *atm_dev = NULL; 356 356 struct he_dev *he_dev = NULL; ··· 406 406 return err; 407 407 } 408 408 409 - static void __devexit 410 - he_remove_one (struct pci_dev *pci_dev) 409 + static void he_remove_one(struct pci_dev *pci_dev) 411 410 { 412 411 struct atm_dev *atm_dev; 413 412 struct he_dev *he_dev; ··· 444 445 return (NONZERO | (exp << 9) | (rate & 0x1ff)); 445 446 } 446 447 447 - static void __devinit 448 - he_init_rx_lbfp0(struct he_dev *he_dev) 448 + static void he_init_rx_lbfp0(struct he_dev *he_dev) 449 449 { 450 450 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count; 451 451 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf; ··· 474 476 he_writel(he_dev, he_dev->r0_numbuffs, RLBF0_C); 475 477 } 476 478 477 - static void __devinit 478 - he_init_rx_lbfp1(struct he_dev *he_dev) 479 + static void he_init_rx_lbfp1(struct he_dev *he_dev) 479 480 { 480 481 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count; 481 482 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf; ··· 504 507 he_writel(he_dev, he_dev->r1_numbuffs, RLBF1_C); 505 508 } 506 509 507 - static void __devinit 508 - he_init_tx_lbfp(struct he_dev *he_dev) 510 + static void he_init_tx_lbfp(struct he_dev *he_dev) 509 511 { 510 512 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count; 511 513 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf; ··· 533 537 he_writel(he_dev, lbufd_index - 1, TLBF_T); 534 538 } 535 539 536 - static int __devinit 537 - he_init_tpdrq(struct he_dev *he_dev) 540 + static int he_init_tpdrq(struct he_dev *he_dev) 538 541 { 539 542 he_dev->tpdrq_base = pci_alloc_consistent(he_dev->pci_dev, 540 543 CONFIG_TPDRQ_SIZE * sizeof(struct he_tpdrq), &he_dev->tpdrq_phys); ··· 554 559 return 0; 555 560 } 556 561 557 - static void __devinit 558 - he_init_cs_block(struct he_dev *he_dev) 562 + static void he_init_cs_block(struct he_dev *he_dev) 559 563 { 560 564 unsigned clock, rate, delta; 561 565 int reg; ··· 649 655 650 656 } 651 657 652 - static int __devinit 653 - he_init_cs_block_rcm(struct he_dev *he_dev) 658 + static int he_init_cs_block_rcm(struct he_dev *he_dev) 654 659 { 655 660 unsigned (*rategrid)[16][16]; 656 661 unsigned rate, delta; ··· 769 776 return 0; 770 777 } 771 778 772 - static int __devinit 773 - he_init_group(struct he_dev *he_dev, int group) 779 + static int he_init_group(struct he_dev *he_dev, int group) 774 780 { 775 781 struct he_buff *heb, *next; 776 782 dma_addr_t mapping; ··· 907 915 return -ENOMEM; 908 916 } 909 917 910 - static int __devinit 911 - he_init_irq(struct he_dev *he_dev) 918 + static int he_init_irq(struct he_dev *he_dev) 912 919 { 913 920 int i; 914 921 ··· 969 978 return 0; 970 979 } 971 980 972 - static int __devinit 973 - he_start(struct atm_dev *dev) 981 + static int he_start(struct atm_dev *dev) 974 982 { 975 983 struct he_dev *he_dev; 976 984 struct pci_dev *pci_dev; ··· 2869 2879 static struct pci_driver he_driver = { 2870 2880 .name = "he", 2871 2881 .probe = he_init_one, 2872 - .remove = __devexit_p(he_remove_one), 2882 + .remove = he_remove_one, 2873 2883 .id_table = he_pci_tbl, 2874 2884 }; 2875 2885
+7 -5
drivers/atm/horizon.c
··· 1789 1789 WRITE_IT_WAIT(dev, ctrl | SEEPROM_SK); 1790 1790 } 1791 1791 1792 - static u16 __devinit read_bia (const hrz_dev * dev, u16 addr) 1792 + static u16 read_bia(const hrz_dev *dev, u16 addr) 1793 1793 { 1794 1794 u32 ctrl = rd_regl (dev, CONTROL_0_REG); 1795 1795 ··· 1845 1845 1846 1846 /********** initialise a card **********/ 1847 1847 1848 - static int __devinit hrz_init (hrz_dev * dev) { 1848 + static int hrz_init(hrz_dev *dev) 1849 + { 1849 1850 int onefivefive; 1850 1851 1851 1852 u16 chan; ··· 2682 2681 .owner = THIS_MODULE, 2683 2682 }; 2684 2683 2685 - static int __devinit hrz_probe(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent) 2684 + static int hrz_probe(struct pci_dev *pci_dev, 2685 + const struct pci_device_id *pci_ent) 2686 2686 { 2687 2687 hrz_dev * dev; 2688 2688 int err = 0; ··· 2838 2836 goto out; 2839 2837 } 2840 2838 2841 - static void __devexit hrz_remove_one(struct pci_dev *pci_dev) 2839 + static void hrz_remove_one(struct pci_dev *pci_dev) 2842 2840 { 2843 2841 hrz_dev *dev; 2844 2842 ··· 2903 2901 static struct pci_driver hrz_driver = { 2904 2902 .name = "horizon", 2905 2903 .probe = hrz_probe, 2906 - .remove = __devexit_p(hrz_remove_one), 2904 + .remove = hrz_remove_one, 2907 2905 .id_table = hrz_pci_tbl, 2908 2906 }; 2909 2907
+6 -10
drivers/atm/idt77252.c
··· 3109 3109 } 3110 3110 3111 3111 3112 - static void __devinit 3113 - init_sram(struct idt77252_dev *card) 3112 + static void init_sram(struct idt77252_dev *card) 3114 3113 { 3115 3114 int i; 3116 3115 ··· 3256 3257 IPRINTK("%s: SRAM initialization complete.\n", card->name); 3257 3258 } 3258 3259 3259 - static int __devinit 3260 - init_card(struct atm_dev *dev) 3260 + static int init_card(struct atm_dev *dev) 3261 3261 { 3262 3262 struct idt77252_dev *card = dev->dev_data; 3263 3263 struct pci_dev *pcidev = card->pcidev; ··· 3535 3537 /*****************************************************************************/ 3536 3538 3537 3539 3538 - static int __devinit 3539 - idt77252_preset(struct idt77252_dev *card) 3540 + static int idt77252_preset(struct idt77252_dev *card) 3540 3541 { 3541 3542 u16 pci_command; 3542 3543 ··· 3576 3579 } 3577 3580 3578 3581 3579 - static unsigned long __devinit 3580 - probe_sram(struct idt77252_dev *card) 3582 + static unsigned long probe_sram(struct idt77252_dev *card) 3581 3583 { 3582 3584 u32 data, addr; 3583 3585 ··· 3597 3601 return addr * sizeof(u32); 3598 3602 } 3599 3603 3600 - static int __devinit 3601 - idt77252_init_one(struct pci_dev *pcidev, const struct pci_device_id *id) 3604 + static int idt77252_init_one(struct pci_dev *pcidev, 3605 + const struct pci_device_id *id) 3602 3606 { 3603 3607 static struct idt77252_dev **last = &idt77252_chain; 3604 3608 static int index = 0;
+5 -6
drivers/atm/iphase.c
··· 2299 2299 } 2300 2300 2301 2301 2302 - static int __devinit ia_init(struct atm_dev *dev) 2302 + static int ia_init(struct atm_dev *dev) 2303 2303 { 2304 2304 IADEV *iadev; 2305 2305 unsigned long real_base; ··· 2492 2492 iadev->rx_dle_dma); 2493 2493 } 2494 2494 2495 - static int __devinit ia_start(struct atm_dev *dev) 2495 + static int ia_start(struct atm_dev *dev) 2496 2496 { 2497 2497 IADEV *iadev; 2498 2498 int error; ··· 3168 3168 .owner = THIS_MODULE, 3169 3169 }; 3170 3170 3171 - static int __devinit ia_init_one(struct pci_dev *pdev, 3172 - const struct pci_device_id *ent) 3171 + static int ia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 3173 3172 { 3174 3173 struct atm_dev *dev; 3175 3174 IADEV *iadev; ··· 3228 3229 return ret; 3229 3230 } 3230 3231 3231 - static void __devexit ia_remove_one(struct pci_dev *pdev) 3232 + static void ia_remove_one(struct pci_dev *pdev) 3232 3233 { 3233 3234 struct atm_dev *dev = pci_get_drvdata(pdev); 3234 3235 IADEV *iadev = INPH_IA_DEV(dev); ··· 3269 3270 .name = DEV_LABEL, 3270 3271 .id_table = ia_pci_tbl, 3271 3272 .probe = ia_init_one, 3272 - .remove = __devexit_p(ia_remove_one), 3273 + .remove = ia_remove_one, 3273 3274 }; 3274 3275 3275 3276 static int __init ia_module_init(void)
+14 -14
drivers/atm/lanai.c
··· 551 551 writel(val, sram_addr(lanai, offset)); 552 552 } 553 553 554 - static int __devinit sram_test_word(const struct lanai_dev *lanai, 555 - int offset, u32 pattern) 554 + static int sram_test_word(const struct lanai_dev *lanai, int offset, 555 + u32 pattern) 556 556 { 557 557 u32 readback; 558 558 sram_write(lanai, pattern, offset); ··· 566 566 return -EIO; 567 567 } 568 568 569 - static int __devinit sram_test_pass(const struct lanai_dev *lanai, u32 pattern) 569 + static int sram_test_pass(const struct lanai_dev *lanai, u32 pattern) 570 570 { 571 571 int offset, result = 0; 572 572 for (offset = 0; offset < SRAM_BYTES && result == 0; offset += 4) ··· 574 574 return result; 575 575 } 576 576 577 - static int __devinit sram_test_and_clear(const struct lanai_dev *lanai) 577 + static int sram_test_and_clear(const struct lanai_dev *lanai) 578 578 { 579 579 #ifdef FULL_MEMORY_TEST 580 580 int result; ··· 860 860 #ifndef READ_EEPROM 861 861 862 862 /* Stub functions to use if EEPROM reading is disabled */ 863 - static int __devinit eeprom_read(struct lanai_dev *lanai) 863 + static int eeprom_read(struct lanai_dev *lanai) 864 864 { 865 865 printk(KERN_INFO DEV_LABEL "(itf %d): *NOT* reading EEPROM\n", 866 866 lanai->number); ··· 868 868 return 0; 869 869 } 870 870 871 - static int __devinit eeprom_validate(struct lanai_dev *lanai) 871 + static int eeprom_validate(struct lanai_dev *lanai) 872 872 { 873 873 lanai->serialno = 0; 874 874 lanai->magicno = EEPROM_MAGIC_VALUE; ··· 877 877 878 878 #else /* READ_EEPROM */ 879 879 880 - static int __devinit eeprom_read(struct lanai_dev *lanai) 880 + static int eeprom_read(struct lanai_dev *lanai) 881 881 { 882 882 int i, address; 883 883 u8 data; ··· 953 953 } 954 954 955 955 /* Checksum/validate EEPROM contents */ 956 - static int __devinit eeprom_validate(struct lanai_dev *lanai) 956 + static int eeprom_validate(struct lanai_dev *lanai) 957 957 { 958 958 int i, s; 959 959 u32 v; ··· 1448 1448 #include <linux/vmalloc.h> 1449 1449 #endif 1450 1450 1451 - static int __devinit vcc_table_allocate(struct lanai_dev *lanai) 1451 + static int vcc_table_allocate(struct lanai_dev *lanai) 1452 1452 { 1453 1453 #ifdef VCCTABLE_GETFREEPAGE 1454 1454 APRINTK((lanai->num_vci) * sizeof(struct lanai_vcc *) <= PAGE_SIZE, ··· 1588 1588 /* 1589 1589 * Allocate service buffer and tell card about it 1590 1590 */ 1591 - static int __devinit service_buffer_allocate(struct lanai_dev *lanai) 1591 + static int service_buffer_allocate(struct lanai_dev *lanai) 1592 1592 { 1593 1593 lanai_buf_allocate(&lanai->service, SERVICE_ENTRIES * 4, 8, 1594 1594 lanai->pci); ··· 1942 1942 1943 1943 /* -------------------- PCI INITIALIZATION/SHUTDOWN: */ 1944 1944 1945 - static int __devinit lanai_pci_start(struct lanai_dev *lanai) 1945 + static int lanai_pci_start(struct lanai_dev *lanai) 1946 1946 { 1947 1947 struct pci_dev *pci = lanai->pci; 1948 1948 int result; ··· 2123 2123 /* -------------------- OPERATIONS: */ 2124 2124 2125 2125 /* setup a newly detected device */ 2126 - static int __devinit lanai_dev_open(struct atm_dev *atmdev) 2126 + static int lanai_dev_open(struct atm_dev *atmdev) 2127 2127 { 2128 2128 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; 2129 2129 unsigned long raw_base; ··· 2566 2566 }; 2567 2567 2568 2568 /* initialize one probed card */ 2569 - static int __devinit lanai_init_one(struct pci_dev *pci, 2570 - const struct pci_device_id *ident) 2569 + static int lanai_init_one(struct pci_dev *pci, 2570 + const struct pci_device_id *ident) 2571 2571 { 2572 2572 struct lanai_dev *lanai; 2573 2573 struct atm_dev *atmdev;
+9 -9
drivers/atm/nicstar.c
··· 121 121 static u32 ns_read_sram(ns_dev * card, u32 sram_address); 122 122 static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value, 123 123 int count); 124 - static int __devinit ns_init_card(int i, struct pci_dev *pcidev); 125 - static void __devinit ns_init_card_error(ns_dev * card, int error); 124 + static int ns_init_card(int i, struct pci_dev *pcidev); 125 + static void ns_init_card_error(ns_dev * card, int error); 126 126 static scq_info *get_scq(ns_dev *card, int size, u32 scd); 127 127 static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc); 128 128 static void push_rxbufs(ns_dev *, struct sk_buff *); ··· 180 180 181 181 /* Functions */ 182 182 183 - static int __devinit nicstar_init_one(struct pci_dev *pcidev, 184 - const struct pci_device_id *ent) 183 + static int nicstar_init_one(struct pci_dev *pcidev, 184 + const struct pci_device_id *ent) 185 185 { 186 186 static int index = -1; 187 187 unsigned int error; ··· 200 200 return -ENODEV; 201 201 } 202 202 203 - static void __devexit nicstar_remove_one(struct pci_dev *pcidev) 203 + static void nicstar_remove_one(struct pci_dev *pcidev) 204 204 { 205 205 int i, j; 206 206 ns_dev *card = pci_get_drvdata(pcidev); ··· 262 262 kfree(card); 263 263 } 264 264 265 - static struct pci_device_id nicstar_pci_tbl[] __devinitdata = { 265 + static struct pci_device_id nicstar_pci_tbl[] = { 266 266 { PCI_VDEVICE(IDT, PCI_DEVICE_ID_IDT_IDT77201), 0 }, 267 267 {0,} /* terminate list */ 268 268 }; ··· 273 273 .name = "nicstar", 274 274 .id_table = nicstar_pci_tbl, 275 275 .probe = nicstar_init_one, 276 - .remove = __devexit_p(nicstar_remove_one), 276 + .remove = nicstar_remove_one, 277 277 }; 278 278 279 279 static int __init nicstar_init(void) ··· 351 351 spin_unlock_irqrestore(&card->res_lock, flags); 352 352 } 353 353 354 - static int __devinit ns_init_card(int i, struct pci_dev *pcidev) 354 + static int ns_init_card(int i, struct pci_dev *pcidev) 355 355 { 356 356 int j; 357 357 struct ns_dev *card = NULL; ··· 821 821 return error; 822 822 } 823 823 824 - static void __devinit ns_init_card_error(ns_dev * card, int error) 824 + static void ns_init_card_error(ns_dev *card, int error) 825 825 { 826 826 if (error >= 17) { 827 827 writel(0x00000000, card->membase + CFG);
+1 -1
drivers/atm/solos-pci.c
··· 1462 1462 kfree(card); 1463 1463 } 1464 1464 1465 - static struct pci_device_id fpga_pci_tbl[] __devinitdata = { 1465 + static struct pci_device_id fpga_pci_tbl[] = { 1466 1466 { 0x10ee, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, 1467 1467 { 0, } 1468 1468 };
+15 -16
drivers/atm/zatm.c
··· 1094 1094 /*----------------------------- (E)EPROM access -----------------------------*/ 1095 1095 1096 1096 1097 - static void __devinit eprom_set(struct zatm_dev *zatm_dev,unsigned long value, 1098 - unsigned short cmd) 1097 + static void eprom_set(struct zatm_dev *zatm_dev, unsigned long value, 1098 + unsigned short cmd) 1099 1099 { 1100 1100 int error; 1101 1101 ··· 1105 1105 } 1106 1106 1107 1107 1108 - static unsigned long __devinit eprom_get(struct zatm_dev *zatm_dev, 1109 - unsigned short cmd) 1108 + static unsigned long eprom_get(struct zatm_dev *zatm_dev, unsigned short cmd) 1110 1109 { 1111 1110 unsigned int value; 1112 1111 int error; ··· 1117 1118 } 1118 1119 1119 1120 1120 - static void __devinit eprom_put_bits(struct zatm_dev *zatm_dev, 1121 - unsigned long data,int bits,unsigned short cmd) 1121 + static void eprom_put_bits(struct zatm_dev *zatm_dev, unsigned long data, 1122 + int bits, unsigned short cmd) 1122 1123 { 1123 1124 unsigned long value; 1124 1125 int i; ··· 1132 1133 } 1133 1134 1134 1135 1135 - static void __devinit eprom_get_byte(struct zatm_dev *zatm_dev, 1136 - unsigned char *byte,unsigned short cmd) 1136 + static void eprom_get_byte(struct zatm_dev *zatm_dev, unsigned char *byte, 1137 + unsigned short cmd) 1137 1138 { 1138 1139 int i; 1139 1140 ··· 1148 1149 } 1149 1150 1150 1151 1151 - static unsigned char __devinit eprom_try_esi(struct atm_dev *dev, 1152 - unsigned short cmd,int offset,int swap) 1152 + static unsigned char eprom_try_esi(struct atm_dev *dev, unsigned short cmd, 1153 + int offset, int swap) 1153 1154 { 1154 1155 unsigned char buf[ZEPROM_SIZE]; 1155 1156 struct zatm_dev *zatm_dev; ··· 1169 1170 } 1170 1171 1171 1172 1172 - static void __devinit eprom_get_esi(struct atm_dev *dev) 1173 + static void eprom_get_esi(struct atm_dev *dev) 1173 1174 { 1174 1175 if (eprom_try_esi(dev,ZEPROM_V1_REG,ZEPROM_V1_ESI_OFF,1)) return; 1175 1176 (void) eprom_try_esi(dev,ZEPROM_V2_REG,ZEPROM_V2_ESI_OFF,0); ··· 1179 1180 /*--------------------------------- entries ---------------------------------*/ 1180 1181 1181 1182 1182 - static int __devinit zatm_init(struct atm_dev *dev) 1183 + static int zatm_init(struct atm_dev *dev) 1183 1184 { 1184 1185 struct zatm_dev *zatm_dev; 1185 1186 struct pci_dev *pci_dev; ··· 1256 1257 } 1257 1258 1258 1259 1259 - static int __devinit zatm_start(struct atm_dev *dev) 1260 + static int zatm_start(struct atm_dev *dev) 1260 1261 { 1261 1262 struct zatm_dev *zatm_dev = ZATM_DEV(dev); 1262 1263 struct pci_dev *pdev = zatm_dev->pci_dev; ··· 1583 1584 .change_qos = zatm_change_qos, 1584 1585 }; 1585 1586 1586 - static int __devinit zatm_init_one(struct pci_dev *pci_dev, 1587 - const struct pci_device_id *ent) 1587 + static int zatm_init_one(struct pci_dev *pci_dev, 1588 + const struct pci_device_id *ent) 1588 1589 { 1589 1590 struct atm_dev *dev; 1590 1591 struct zatm_dev *zatm_dev; ··· 1635 1636 1636 1637 MODULE_LICENSE("GPL"); 1637 1638 1638 - static struct pci_device_id zatm_pci_tbl[] __devinitdata = { 1639 + static struct pci_device_id zatm_pci_tbl[] = { 1639 1640 { PCI_VDEVICE(ZEITNET, PCI_DEVICE_ID_ZEITNET_1221), ZATM_COPPER }, 1640 1641 { PCI_VDEVICE(ZEITNET, PCI_DEVICE_ID_ZEITNET_1225), 0 }, 1641 1642 { 0, }