Commit bb558dac6776386a4d6994540a009231dcf53ee1

Authored by Nick Bowler
Committed by Wim Van Sebroeck
1 parent 452190cb05

watchdog: sp805: Fix section mismatch in ID table.

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/watchdog/sp805_wdt.c
... ... @@ -351,7 +351,7 @@
351 351 return 0;
352 352 }
353 353  
354   -static struct amba_id sp805_wdt_ids[] __initdata = {
  354 +static struct amba_id sp805_wdt_ids[] = {
355 355 {
356 356 .id = 0x00141805,
357 357 .mask = 0x00ffffff,