watchdog: sp805: Fix section mismatch in ID table.
authorNick Bowler <nbowler@elliptictech.com>
Mon, 19 Dec 2011 16:22:36 +0000 (11:22 -0500)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 26 Dec 2011 14:14:31 +0000 (15:14 +0100)
The AMBA ID table is marked as __initdata, yet it is referenced by the
driver struct which is not.  This causes a (somewhat unhelpful) section
mismatch warning:

  WARNING: drivers/watchdog/sp805_wdt.o(.data+0x4c): Section mismatch in
           reference from the variable sp805_wdt_driver to the (unknown
           reference) .init.data:(unknown)

Fix this by removing the annotation.

Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sp805_wdt.c

index cc2cfbe33b30d441a2ef6449d2babe0b1eb43a3d..bfaf9bb1ee0d1ff384a014742f5c8148e96fc040 100644 (file)
@@ -351,7 +351,7 @@ static int __devexit sp805_wdt_remove(struct amba_device *adev)
        return 0;
 }
 
-static struct amba_id sp805_wdt_ids[] __initdata = {
+static struct amba_id sp805_wdt_ids[] = {
        {
                .id     = 0x00141805,
                .mask   = 0x00ffffff,