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