netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] atm/lanai.c:sram_test_word() must be __devinit
@ 2007-07-10 12:44 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-07-10 12:44 UTC (permalink / raw)
  To: jgarzik; +Cc: netdev, linux-kernel

This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x62e4f7): Section mismatch: reference to .init.text:sram_test_word (between 'sram_test_pass' and 'sram_test_and_clear')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---
--- linux-2.6.22-rc6-mm1/drivers/atm/lanai.c.old	2007-07-10 04:14:40.000000000 +0200
+++ linux-2.6.22-rc6-mm1/drivers/atm/lanai.c	2007-07-10 04:15:20.000000000 +0200
@@ -553,8 +553,8 @@
 	writel(val, sram_addr(lanai, offset));
 }
 
-static int __init sram_test_word(
-	const struct lanai_dev *lanai, int offset, u32 pattern)
+static int __devinit sram_test_word(const struct lanai_dev *lanai,
+				    int offset, u32 pattern)
 {
 	u32 readback;
 	sram_write(lanai, pattern, offset);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-10 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-10 12:44 [2.6 patch] atm/lanai.c:sram_test_word() must be __devinit Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).