olympic_open() must be __devinit
Subsystems (2)
PATCH 1/1 olympic_open() must be __devinit
This patch fixes the following section mismatch:
<-- snip -->
...
WARNING: drivers/net/built-in.o(.text+0x155573): Section mismatch in reference from the function olympic_open() to the function .devinit.text:olympic_init()
...
<-- snip -->
---fd1e6e0bb5b17dc85cd24d6263e8751e816f59e6
drivers/net/tokenring/olympic.c +1 -1
@@ -434,7 +434,7 @@ static int __devinit olympic_init(struct net_device *dev) } -static int olympic_open (struct net_device *dev) +static int __devinit olympic_open (struct net_device *dev) {struct olympic_private *olympic_priv=netdev_priv (dev);u8 __iomem *olympic_mmio=olympic_priv->olympic_mmio,*init_srb;
Quoted 21 lines · Adrian Bunk
This patch fixes the following section mismatch:
<-- snip -->
...
WARNING: drivers/net/built-in.o(.text+0x155573): Section mismatch in reference from the functionolympic_open()to the function .devinit.text:olympic_init()
...<-- snip -->
Signed-off-by Adrian Bunk <[email protected]>---
fd1e6e0bb5b17dc85cd24d6263e8751e816f59e6drivers/net/tokenring/olympic.c +0
-0
drivers/net/tokenring/olympic.c static int __devinit olympic_init(struct net_device *dev) · line 440
Quoted 8 lines
drivers/net/tokenring/olympic.c +1
-1@@ -434,7 +434,7 @@ static int __devinit olympic_init(struct net_device *dev) } -static int olympic_open (struct net_device *dev) +static int __devinit olympic_open (struct net_device *dev) {struct olympic_private *olympic_priv=netdev_priv (dev);u8 __iomem *olympic_mmio=olympic_priv->olympic_mmio,*init_srb;
If __devinit marked code is still discarded after initial setup then NACK. open can be called at any time the interface is ifup'ed. Its most definitely not adapter init code (that's all done in probe).
Mike