Skip to content

Commit

Permalink
__devinit & __devexit cleanups for de2104x driver
Browse files Browse the repository at this point in the history
Fixes MODPOST warnings similar to:

WARNING: drivers/net/tulip/de2104x.o - Section mismatch: reference to
.init.text:de_init_one from .data.rel.local after 'de_driver' (at offset 0x20)
WARNING: drivers/net/tulip/de2104x.o - Section mismatch: reference to
.exit.text:de_remove_one from .data.rel.local after 'de_driver' (at offset 0x28)

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Cc: Valerie Henson <val_henson@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Prarit Bhargava authored and Jeff Garzik committed Mar 6, 2007
1 parent e126515 commit 4c44fd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/tulip/de2104x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ static const struct ethtool_ops de_ethtool_ops = {
.get_regs = de_get_regs,
};

static void __init de21040_get_mac_address (struct de_private *de)
static void __devinit de21040_get_mac_address (struct de_private *de)
{
unsigned i;

Expand All @@ -1703,7 +1703,7 @@ static void __init de21040_get_mac_address (struct de_private *de)
}
}

static void __init de21040_get_media_info(struct de_private *de)
static void __devinit de21040_get_media_info(struct de_private *de)
{
unsigned int i;

Expand Down Expand Up @@ -1765,7 +1765,7 @@ static unsigned __devinit tulip_read_eeprom(void __iomem *regs, int location, in
return retval;
}

static void __init de21041_get_srom_info (struct de_private *de)
static void __devinit de21041_get_srom_info (struct de_private *de)
{
unsigned i, sa_offset = 0, ofs;
u8 ee_data[DE_EEPROM_SIZE + 6] = {};
Expand Down

0 comments on commit 4c44fd0

Please sign in to comment.