@@ -331,18 +331,18 @@ static struct {
331331 "DE422",\
332332 ""}
333333
334- static const char * const depca_signature [] __devinitconst = DEPCA_SIGNATURE ;
334+ static char * __initdata depca_signature [] = DEPCA_SIGNATURE ;
335335
336336enum depca_type {
337337 DEPCA , de100 , de101 , de200 , de201 , de202 , de210 , de212 , de422 , unknown
338338};
339339
340- static const char depca_string [] = "depca" ;
340+ static char depca_string [] = "depca" ;
341341
342342static int depca_device_remove (struct device * device );
343343
344344#ifdef CONFIG_EISA
345- static const struct eisa_device_id depca_eisa_ids [] __devinitconst = {
345+ static struct eisa_device_id depca_eisa_ids [] = {
346346 { "DEC4220" , de422 },
347347 { "" }
348348};
@@ -367,19 +367,19 @@ static struct eisa_driver depca_eisa_driver = {
367367#define DE210_ID 0x628d
368368#define DE212_ID 0x6def
369369
370- static const short depca_mca_adapter_ids [] __devinitconst = {
370+ static short depca_mca_adapter_ids [] = {
371371 DE210_ID ,
372372 DE212_ID ,
373373 0x0000
374374};
375375
376- static const char * depca_mca_adapter_name [] = {
376+ static char * depca_mca_adapter_name [] = {
377377 "DEC EtherWORKS MC Adapter (DE210)" ,
378378 "DEC EtherWORKS MC Adapter (DE212)" ,
379379 NULL
380380};
381381
382- static const enum depca_type depca_mca_adapter_type [] = {
382+ static enum depca_type depca_mca_adapter_type [] = {
383383 de210 ,
384384 de212 ,
385385 0
@@ -541,9 +541,10 @@ static void SetMulticastFilter(struct net_device *dev);
541541static int load_packet (struct net_device * dev , struct sk_buff * skb );
542542static void depca_dbg_open (struct net_device * dev );
543543
544- static const u_char de1xx_irq [] __devinitconst = { 2 , 3 , 4 , 5 , 7 , 9 , 0 };
545- static const u_char de2xx_irq [] __devinitconst = { 5 , 9 , 10 , 11 , 15 , 0 };
546- static const u_char de422_irq [] __devinitconst = { 5 , 9 , 10 , 11 , 0 };
544+ static u_char de1xx_irq [] __initdata = { 2 , 3 , 4 , 5 , 7 , 9 , 0 };
545+ static u_char de2xx_irq [] __initdata = { 5 , 9 , 10 , 11 , 15 , 0 };
546+ static u_char de422_irq [] __initdata = { 5 , 9 , 10 , 11 , 0 };
547+ static u_char * depca_irq ;
547548
548549static int irq ;
549550static int io ;
@@ -579,7 +580,7 @@ static const struct net_device_ops depca_netdev_ops = {
579580 .ndo_validate_addr = eth_validate_addr ,
580581};
581582
582- static int __devinit depca_hw_init (struct net_device * dev , struct device * device )
583+ static int __init depca_hw_init (struct net_device * dev , struct device * device )
583584{
584585 struct depca_private * lp ;
585586 int i , j , offset , netRAM , mem_len , status = 0 ;
@@ -747,7 +748,6 @@ static int __devinit depca_hw_init (struct net_device *dev, struct device *devic
747748 if (dev -> irq < 2 ) {
748749 unsigned char irqnum ;
749750 unsigned long irq_mask , delay ;
750- const u_char * depca_irq ;
751751
752752 irq_mask = probe_irq_on ();
753753
@@ -770,7 +770,6 @@ static int __devinit depca_hw_init (struct net_device *dev, struct device *devic
770770 break ;
771771
772772 default :
773- depca_irq = NULL ;
774773 break ; /* Not reached */
775774 }
776775
@@ -1303,7 +1302,7 @@ static void SetMulticastFilter(struct net_device *dev)
13031302 }
13041303}
13051304
1306- static int __devinit depca_common_init (u_long ioaddr , struct net_device * * devp )
1305+ static int __init depca_common_init (u_long ioaddr , struct net_device * * devp )
13071306{
13081307 int status = 0 ;
13091308
@@ -1334,7 +1333,7 @@ static int __devinit depca_common_init (u_long ioaddr, struct net_device **devp)
13341333/*
13351334** Microchannel bus I/O device probe
13361335*/
1337- static int __devinit depca_mca_probe (struct device * device )
1336+ static int __init depca_mca_probe (struct device * device )
13381337{
13391338 unsigned char pos [2 ];
13401339 unsigned char where ;
@@ -1458,7 +1457,7 @@ static int __devinit depca_mca_probe(struct device *device)
14581457** ISA bus I/O device probe
14591458*/
14601459
1461- static void __devinit depca_platform_probe (void )
1460+ static void __init depca_platform_probe (void )
14621461{
14631462 int i ;
14641463 struct platform_device * pldev ;
@@ -1498,7 +1497,7 @@ static void __devinit depca_platform_probe (void)
14981497 }
14991498}
15001499
1501- static enum depca_type __devinit depca_shmem_probe (ulong * mem_start )
1500+ static enum depca_type __init depca_shmem_probe (ulong * mem_start )
15021501{
15031502 u_long mem_base [] = DEPCA_RAM_BASE_ADDRESSES ;
15041503 enum depca_type adapter = unknown ;
@@ -1559,7 +1558,7 @@ static int __devinit depca_isa_probe (struct platform_device *device)
15591558*/
15601559
15611560#ifdef CONFIG_EISA
1562- static int __devinit depca_eisa_probe (struct device * device )
1561+ static int __init depca_eisa_probe (struct device * device )
15631562{
15641563 enum depca_type adapter = unknown ;
15651564 struct eisa_device * edev ;
@@ -1630,7 +1629,7 @@ static int __devexit depca_device_remove (struct device *device)
16301629** and Boot (readb) ROM. This will also give us a clue to the network RAM
16311630** base address.
16321631*/
1633- static int __devinit DepcaSignature (char * name , u_long base_addr )
1632+ static int __init DepcaSignature (char * name , u_long base_addr )
16341633{
16351634 u_int i , j , k ;
16361635 void __iomem * ptr ;
0 commit comments