Skip to content

Commit 6c44512

Browse files
committed
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>
1 parent 082a200 commit 6c44512

12 files changed

Lines changed: 152 additions & 175 deletions

File tree

‎drivers/atm/ambassador.c‎

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,9 +1507,9 @@ static void do_housekeeping (unsigned long arg) {
15071507

15081508
/********** creation of communication queues **********/
15091509

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+
{
15131513
unsigned char pool;
15141514
size_t total = 0;
15151515
void * memory;
@@ -1737,8 +1737,9 @@ static int decode_loader_result (loader_command cmd, u32 result)
17371737
return res;
17381738
}
17391739

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+
{
17421743

17431744
unsigned long timeout;
17441745

@@ -1793,8 +1794,9 @@ static int __devinit do_loader_command (volatile loader_block * lb,
17931794

17941795
/* loader: determine loader version */
17951796

1796-
static int __devinit get_loader_version (loader_block * lb,
1797-
const amb_dev * dev, u32 * version) {
1797+
static int get_loader_version(loader_block *lb, const amb_dev *dev,
1798+
u32 *version)
1799+
{
17981800
int res;
17991801

18001802
PRINTD (DBG_FLOW|DBG_LOAD, "get_loader_version");
@@ -1809,9 +1811,9 @@ static int __devinit get_loader_version (loader_block * lb,
18091811

18101812
/* loader: write memory data blocks */
18111813

1812-
static int __devinit loader_write (loader_block* lb,
1813-
const amb_dev *dev,
1814-
const struct ihex_binrec *rec) {
1814+
static int loader_write(loader_block *lb, const amb_dev *dev,
1815+
const struct ihex_binrec *rec)
1816+
{
18151817
transfer_block * tb = &lb->payload.transfer;
18161818

18171819
PRINTD (DBG_FLOW|DBG_LOAD, "loader_write");
@@ -1824,9 +1826,9 @@ static int __devinit loader_write (loader_block* lb,
18241826

18251827
/* loader: verify memory data blocks */
18261828

1827-
static int __devinit loader_verify (loader_block * lb,
1828-
const amb_dev *dev,
1829-
const struct ihex_binrec *rec) {
1829+
static int loader_verify(loader_block *lb, const amb_dev *dev,
1830+
const struct ihex_binrec *rec)
1831+
{
18301832
transfer_block * tb = &lb->payload.transfer;
18311833
int res;
18321834

@@ -1842,8 +1844,8 @@ static int __devinit loader_verify (loader_block * lb,
18421844

18431845
/* loader: start microcode */
18441846

1845-
static int __devinit loader_start (loader_block * lb,
1846-
const amb_dev * dev, u32 address) {
1847+
static int loader_start(loader_block *lb, const amb_dev *dev, u32 address)
1848+
{
18471849
PRINTD (DBG_FLOW|DBG_LOAD, "loader_start");
18481850

18491851
lb->payload.start = cpu_to_be32 (address);
@@ -1918,7 +1920,8 @@ static int amb_reset (amb_dev * dev, int diags) {
19181920

19191921
/********** transfer and start the microcode **********/
19201922

1921-
static int __devinit ucode_init (loader_block * lb, amb_dev * dev) {
1923+
static int ucode_init(loader_block *lb, amb_dev *dev)
1924+
{
19221925
const struct firmware *fw;
19231926
unsigned long start_address;
19241927
const struct ihex_binrec *rec;
@@ -1980,7 +1983,8 @@ static inline __be32 bus_addr(void * addr) {
19801983
return cpu_to_be32 (virt_to_bus (addr));
19811984
}
19821985

1983-
static int __devinit amb_talk (amb_dev * dev) {
1986+
static int amb_talk(amb_dev *dev)
1987+
{
19841988
adap_talk_block a;
19851989
unsigned char pool;
19861990
unsigned long timeout;
@@ -2027,7 +2031,8 @@ static int __devinit amb_talk (amb_dev * dev) {
20272031
}
20282032

20292033
// get microcode version
2030-
static void __devinit amb_ucode_version (amb_dev * dev) {
2034+
static void amb_ucode_version(amb_dev *dev)
2035+
{
20312036
u32 major;
20322037
u32 minor;
20332038
command cmd;
@@ -2042,7 +2047,8 @@ static void __devinit amb_ucode_version (amb_dev * dev) {
20422047
}
20432048

20442049
// get end station address
2045-
static void __devinit amb_esi (amb_dev * dev, u8 * esi) {
2050+
static void amb_esi(amb_dev *dev, u8 *esi)
2051+
{
20462052
u32 lower4;
20472053
u16 upper2;
20482054
command cmd;
@@ -2088,7 +2094,7 @@ static void fixup_plx_window (amb_dev *dev, loader_block *lb)
20882094
return;
20892095
}
20902096

2091-
static int __devinit amb_init (amb_dev * dev)
2097+
static int amb_init(amb_dev *dev)
20922098
{
20932099
loader_block lb;
20942100

@@ -2184,7 +2190,8 @@ static void setup_pci_dev(struct pci_dev *pci_dev)
21842190
}
21852191
}
21862192

2187-
static int __devinit amb_probe(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent)
2193+
static int amb_probe(struct pci_dev *pci_dev,
2194+
const struct pci_device_id *pci_ent)
21882195
{
21892196
amb_dev * dev;
21902197
int err;
@@ -2285,7 +2292,7 @@ static int __devinit amb_probe(struct pci_dev *pci_dev, const struct pci_device_
22852292
}
22862293

22872294

2288-
static void __devexit amb_remove_one(struct pci_dev *pci_dev)
2295+
static void amb_remove_one(struct pci_dev *pci_dev)
22892296
{
22902297
struct amb_dev *dev;
22912298

@@ -2379,7 +2386,7 @@ MODULE_DEVICE_TABLE(pci, amb_pci_tbl);
23792386
static struct pci_driver amb_driver = {
23802387
.name = "amb",
23812388
.probe = amb_probe,
2382-
.remove = __devexit_p(amb_remove_one),
2389+
.remove = amb_remove_one,
23832390
.id_table = amb_pci_tbl,
23842391
};
23852392

‎drivers/atm/eni.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ tx_complete++;
15671567
/*--------------------------------- entries ---------------------------------*/
15681568

15691569

1570-
static char * const media_name[] __devinitconst = {
1570+
static char * const media_name[] = {
15711571
"MMF", "SMF", "MMF", "03?", /* 0- 3 */
15721572
"UTP", "05?", "06?", "07?", /* 4- 7 */
15731573
"TAXI","09?", "10?", "11?", /* 8-11 */
@@ -1591,7 +1591,7 @@ static char * const media_name[] __devinitconst = {
15911591
} })
15921592

15931593

1594-
static int __devinit get_esi_asic(struct atm_dev *dev)
1594+
static int get_esi_asic(struct atm_dev *dev)
15951595
{
15961596
struct eni_dev *eni_dev;
15971597
unsigned char tonga;
@@ -1683,7 +1683,7 @@ static int __devinit get_esi_asic(struct atm_dev *dev)
16831683
#undef GET_SEPROM
16841684

16851685

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)
16871687
{
16881688
void __iomem *mac_base;
16891689
int i;
@@ -1694,7 +1694,7 @@ static int __devinit get_esi_fpga(struct atm_dev *dev, void __iomem *base)
16941694
}
16951695

16961696

1697-
static int __devinit eni_do_init(struct atm_dev *dev)
1697+
static int eni_do_init(struct atm_dev *dev)
16981698
{
16991699
struct midway_eprom __iomem *eprom;
17001700
struct eni_dev *eni_dev;
@@ -1797,7 +1797,7 @@ static void eni_do_release(struct atm_dev *dev)
17971797
iounmap(ed->ioaddr);
17981798
}
17991799

1800-
static int __devinit eni_start(struct atm_dev *dev)
1800+
static int eni_start(struct atm_dev *dev)
18011801
{
18021802
struct eni_dev *eni_dev;
18031803

@@ -2226,8 +2226,8 @@ static const struct atmdev_ops ops = {
22262226
};
22272227

22282228

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)
22312231
{
22322232
struct atm_dev *dev;
22332233
struct eni_dev *eni_dev;
@@ -2292,7 +2292,7 @@ static struct pci_device_id eni_pci_tbl[] = {
22922292
MODULE_DEVICE_TABLE(pci,eni_pci_tbl);
22932293

22942294

2295-
static void __devexit eni_remove_one(struct pci_dev *pdev)
2295+
static void eni_remove_one(struct pci_dev *pdev)
22962296
{
22972297
struct atm_dev *dev = pci_get_drvdata(pdev);
22982298
struct eni_dev *ed = ENI_DEV(dev);
@@ -2310,7 +2310,7 @@ static struct pci_driver eni_driver = {
23102310
.name = DEV_LABEL,
23112311
.id_table = eni_pci_tbl,
23122312
.probe = eni_init_one,
2313-
.remove = __devexit_p(eni_remove_one),
2313+
.remove = eni_remove_one,
23142314
};
23152315

23162316

‎drivers/atm/firestream.c‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ struct reginit_item {
252252
};
253253

254254

255-
static struct reginit_item PHY_NTC_INIT[] __devinitdata = {
255+
static struct reginit_item PHY_NTC_INIT[] = {
256256
{ PHY_CLEARALL, 0x40 },
257257
{ 0x12, 0x0001 },
258258
{ 0x13, 0x7605 },
@@ -1295,7 +1295,7 @@ static const struct atmdev_ops ops = {
12951295
};
12961296

12971297

1298-
static void __devinit undocumented_pci_fix (struct pci_dev *pdev)
1298+
static void undocumented_pci_fix(struct pci_dev *pdev)
12991299
{
13001300
u32 tint;
13011301

@@ -1319,13 +1319,13 @@ static void __devinit undocumented_pci_fix (struct pci_dev *pdev)
13191319
* PHY routines *
13201320
**************************************************************************/
13211321

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)
13231323
{
13241324
submit_command (dev, &dev->hp_txq, QE_CMD_PRP_WR | QE_CMD_IMM_INQ,
13251325
regnum, val, 0);
13261326
}
13271327

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)
13291329
{
13301330
int i;
13311331

@@ -1381,7 +1381,7 @@ static void reset_chip (struct fs_dev *dev)
13811381
}
13821382
}
13831383

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)
13851385
{
13861386
void *t;
13871387

@@ -1398,8 +1398,8 @@ static void __devinit *aligned_kmalloc (int size, gfp_t flags, int alignment)
13981398
return NULL;
13991399
}
14001400

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)
14031403
{
14041404
int sz = nentries * sizeof (struct FS_QENTRY);
14051405
struct FS_QENTRY *p;
@@ -1434,8 +1434,8 @@ static int __devinit init_q (struct fs_dev *dev,
14341434
}
14351435

14361436

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)
14391439
{
14401440
func_enter ();
14411441

@@ -1528,7 +1528,7 @@ static void top_off_fp (struct fs_dev *dev, struct freepool *fp,
15281528
fs_dprintk (FS_DEBUG_QUEUE, "Added %d entries. \n", n);
15291529
}
15301530

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)
15321532
{
15331533
func_enter ();
15341534

@@ -1544,7 +1544,7 @@ static void __devexit free_queue (struct fs_dev *dev, struct queue *txq)
15441544
func_exit ();
15451545
}
15461546

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)
15481548
{
15491549
func_enter ();
15501550

@@ -1662,7 +1662,7 @@ static void fs_poll (unsigned long data)
16621662
}
16631663
#endif
16641664

1665-
static int __devinit fs_init (struct fs_dev *dev)
1665+
static int fs_init(struct fs_dev *dev)
16661666
{
16671667
struct pci_dev *pci_dev;
16681668
int isr, to;
@@ -1897,8 +1897,8 @@ static int __devinit fs_init (struct fs_dev *dev)
18971897
return 1;
18981898
}
18991899

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)
19021902
{
19031903
struct atm_dev *atm_dev;
19041904
struct fs_dev *fs_dev;
@@ -1934,7 +1934,7 @@ static int __devinit firestream_init_one (struct pci_dev *pci_dev,
19341934
return -ENODEV;
19351935
}
19361936

1937-
static void __devexit firestream_remove_one (struct pci_dev *pdev)
1937+
static void firestream_remove_one(struct pci_dev *pdev)
19381938
{
19391939
int i;
19401940
struct fs_dev *dev, *nxtdev;
@@ -2038,7 +2038,7 @@ static struct pci_driver firestream_driver = {
20382038
.name = "firestream",
20392039
.id_table = firestream_pci_tbl,
20402040
.probe = firestream_init_one,
2041-
.remove = __devexit_p(firestream_remove_one),
2041+
.remove = firestream_remove_one,
20422042
};
20432043

20442044
static int __init firestream_init_module (void)

0 commit comments

Comments
 (0)