mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
el3_common_init() should be __devinit, not __init
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
db053c6b44
commit
08809b25cf
@ -94,7 +94,7 @@
|
|||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/irq.h>
|
#include <asm/irq.h>
|
||||||
|
|
||||||
static char version[] __initdata = DRV_NAME ".c:" DRV_VERSION " " DRV_RELDATE " becker@scyld.com\n";
|
static char version[] __devinitdata = DRV_NAME ".c:" DRV_VERSION " " DRV_RELDATE " becker@scyld.com\n";
|
||||||
|
|
||||||
#ifdef EL3_DEBUG
|
#ifdef EL3_DEBUG
|
||||||
static int el3_debug = EL3_DEBUG;
|
static int el3_debug = EL3_DEBUG;
|
||||||
@ -186,7 +186,7 @@ static int max_interrupt_work = 10;
|
|||||||
static int nopnp;
|
static int nopnp;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int __init el3_common_init(struct net_device *dev);
|
static int __devinit el3_common_init(struct net_device *dev);
|
||||||
static void el3_common_remove(struct net_device *dev);
|
static void el3_common_remove(struct net_device *dev);
|
||||||
static ushort id_read_eeprom(int index);
|
static ushort id_read_eeprom(int index);
|
||||||
static ushort read_eeprom(int ioaddr, int index);
|
static ushort read_eeprom(int ioaddr, int index);
|
||||||
@ -537,7 +537,7 @@ static struct mca_driver el3_mca_driver = {
|
|||||||
static int mca_registered;
|
static int mca_registered;
|
||||||
#endif /* CONFIG_MCA */
|
#endif /* CONFIG_MCA */
|
||||||
|
|
||||||
static int __init el3_common_init(struct net_device *dev)
|
static int __devinit el3_common_init(struct net_device *dev)
|
||||||
{
|
{
|
||||||
struct el3_private *lp = netdev_priv(dev);
|
struct el3_private *lp = netdev_priv(dev);
|
||||||
int err;
|
int err;
|
||||||
|
Loading…
Reference in New Issue
Block a user