Skip to content

Commit

Permalink
sparc: correct section of apc_no_idle
Browse files Browse the repository at this point in the history
The latest mainline gives this section mismatch on sparc:

The function __devinit apc_probe() references
a variable __initdata apc_no_idle.
If apc_no_idle is only used by apc_probe then
annotate apc_no_idle with a matching annotation.

Since the commit 7e7e2f0,
apc_probe() is on __devinit so we have to correct apc_no_idle
which is referenced by this function.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Frederic Weisbecker authored and David S. Miller committed Oct 23, 2008
1 parent e0037df commit a1731e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/apc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define APC_DEVNAME "apc"

static u8 __iomem *regs;
static int apc_no_idle __initdata = 0;
static int apc_no_idle __devinitdata = 0;

#define apc_readb(offs) (sbus_readb(regs+offs))
#define apc_writeb(val, offs) (sbus_writeb(val, regs+offs))
Expand Down

0 comments on commit a1731e5

Please sign in to comment.