Skip to content

Commit

Permalink
ibmlana_adapter_names[] must be __devinitdata
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(.devinit.text+0x1baa4): 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 de4e7c8 commit 976006f
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 @@ -901,7 +901,7 @@ static short ibmlana_adapter_ids[] __initdata = {
0x0000
};

static char *ibmlana_adapter_names[] __initdata = {
static char *ibmlana_adapter_names[] __devinitdata = {
"IBM LAN Adapter/A",
NULL
};
Expand Down

0 comments on commit 976006f

Please sign in to comment.