Skip to content

Commit

Permalink
net/hplance: hplance_init() should be __devinit
Browse files Browse the repository at this point in the history
WARNING: vmlinux.o(.devinit.text+0x253e): Section mismatch in reference from the function hplance_init_one() to the function .init.text:hplance_init()

The forward declaration had the correct attribute, but the actual function
definition hadn't.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
  • Loading branch information
Geert Uytterhoeven authored and David S. Miller committed Jun 13, 2011
1 parent 1ffde03 commit 9281b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hplance.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static void __devexit hplance_remove_one(struct dio_dev *d)
}

/* Initialise a single lance board at the given DIO device */
static void __init hplance_init(struct net_device *dev, struct dio_dev *d)
static void __devinit hplance_init(struct net_device *dev, struct dio_dev *d)
{
unsigned long va = (d->resource.start + DIO_VIRADDRBASE);
struct hplance_private *lp;
Expand Down

0 comments on commit 9281b2a

Please sign in to comment.