Skip to content

Commit bb558da

Browse files
Nick BowlerWim Van Sebroeck
authored andcommitted
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>
1 parent 452190c commit bb558da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/watchdog/sp805_wdt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static int __devexit sp805_wdt_remove(struct amba_device *adev)
351351
return 0;
352352
}
353353

354-
static struct amba_id sp805_wdt_ids[] __initdata = {
354+
static struct amba_id sp805_wdt_ids[] = {
355355
{
356356
.id = 0x00141805,
357357
.mask = 0x00ffffff,

0 commit comments

Comments
 (0)