Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb558dac authored by Nick Bowler's avatar Nick Bowler Committed by Wim Van Sebroeck
Browse files

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: default avatarNick Bowler <nbowler@elliptictech.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 452190cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -351,7 +351,7 @@ static int __devexit sp805_wdt_remove(struct amba_device *adev)
	return 0;
	return 0;
}
}


static struct amba_id sp805_wdt_ids[] __initdata = {
static struct amba_id sp805_wdt_ids[] = {
	{
	{
		.id	= 0x00141805,
		.id	= 0x00141805,
		.mask	= 0x00ffffff,
		.mask	= 0x00ffffff,