Skip to content

Commit

Permalink
watchdog: sp805: Fix section mismatch in ID table.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Bowler authored and Wim Van Sebroeck committed Dec 26, 2011
1 parent 452190c commit bb558da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/sp805_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bb558da

Please sign in to comment.