Skip to contentSkip to conversation

atm/lanai.c:sram_test_word() must be __devinit

PATCH New Adrian Bunk 1 participant 1 message Jul 10, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atm/lanai.c:sram_test_word() must be __devinit

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 -->

---

drivers/atm/lanai.c renamed from drivers/atm/lanai.c.old +2 -2
@@ -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);