Skip to content

Commit

Permalink
ibmlana_init_one() must be __devinit
Browse files Browse the repository at this point in the history
This patch fixes the following section mismatch:

<--  snip  -->

...
WARNING: drivers/net/built-in.o(.text+0x1148a5): Section mismatch in reference from the function ibmlana_init_one() to the variable .init.data:ibmlana_adapter_names
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Feb 3, 2008
1 parent de11743 commit b54e4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ibmlana.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ static char *ibmlana_adapter_names[] __devinitdata = {
NULL
};

static int ibmlana_init_one(struct device *kdev)
static int __devinit ibmlana_init_one(struct device *kdev)
{
struct mca_device *mdev = to_mca_device(kdev);
struct net_device *dev;
Expand Down

0 comments on commit b54e4f8

Please sign in to comment.