netdev
[Top] [All Lists]

[PATCH 4/9][ATM]: [zatm] fix text section references to __init text and

To: netdev@xxxxxxxxxxx
Subject: [PATCH 4/9][ATM]: [zatm] fix text section references to __init text and __initdata; should be __devinit
From: "chas williams - CONTRACTOR" <chas@xxxxxxxxxxxxxxxx>
Date: Mon, 07 Mar 2005 17:06:13 -0500
Cc: davem@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
please apply to 2.6 -- thanks!

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/03/07 14:29:53-05:00 chas@xxxxxxxxxxxxxxxxxxxxxx 
#   [ATM]: [zatm] fix text section references to __init text and __initdata; 
should be __devinit
#   
#   Signed-off-by: Randy Dunlap <rddunlap@xxxxxxxx>
#   Signed-off-by: Chas Williams <chas@xxxxxxxxxxxxxxxx>
# 
# drivers/atm/zatm.c
#   2005/03/07 14:29:35-05:00 chas@xxxxxxxxxxxxxxxxxxxxxx +6 -6
#   [ATM]: [zatm] fix text section references to __init text and __initdata; 
should be __devinit
#   
#   Signed-off-by: Randy Dunlap <rddunlap@xxxxxxxx>
#   Signed-off-by: Chas Williams <chas@xxxxxxxxxxxxxxxx>
# 
diff -Nru a/drivers/atm/zatm.c b/drivers/atm/zatm.c
--- a/drivers/atm/zatm.c        2005-03-07 15:34:29 -05:00
+++ b/drivers/atm/zatm.c        2005-03-07 15:34:29 -05:00
@@ -1090,7 +1090,7 @@
 /*----------------------------- (E)EPROM access -----------------------------*/
 
 
-static void __init eprom_set(struct zatm_dev *zatm_dev,unsigned long value,
+static void __devinit eprom_set(struct zatm_dev *zatm_dev,unsigned long value,
     unsigned short cmd)
 {
        int error;
@@ -1101,7 +1101,7 @@
 }
 
 
-static unsigned long __init eprom_get(struct zatm_dev *zatm_dev,
+static unsigned long __devinit eprom_get(struct zatm_dev *zatm_dev,
     unsigned short cmd)
 {
        unsigned int value;
@@ -1114,7 +1114,7 @@
 }
 
 
-static void __init eprom_put_bits(struct zatm_dev *zatm_dev,
+static void __devinit eprom_put_bits(struct zatm_dev *zatm_dev,
     unsigned long data,int bits,unsigned short cmd)
 {
        unsigned long value;
@@ -1129,7 +1129,7 @@
 }
 
 
-static void __init eprom_get_byte(struct zatm_dev *zatm_dev,
+static void __devinit eprom_get_byte(struct zatm_dev *zatm_dev,
     unsigned char *byte,unsigned short cmd)
 {
        int i;
@@ -1145,7 +1145,7 @@
 }
 
 
-static unsigned char __init eprom_try_esi(struct atm_dev *dev,
+static unsigned char __devinit eprom_try_esi(struct atm_dev *dev,
     unsigned short cmd,int offset,int swap)
 {
        unsigned char buf[ZEPROM_SIZE];
@@ -1166,7 +1166,7 @@
 }
 
 
-static void __init eprom_get_esi(struct atm_dev *dev)
+static void __devinit eprom_get_esi(struct atm_dev *dev)
 {
        if (eprom_try_esi(dev,ZEPROM_V1_REG,ZEPROM_V1_ESI_OFF,1)) return;
        (void) eprom_try_esi(dev,ZEPROM_V2_REG,ZEPROM_V2_ESI_OFF,0);

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 4/9][ATM]: [zatm] fix text section references to __init text and __initdata; should be __devinit, chas williams - CONTRACTOR <=