watchdog: at91sam9: at91_wdt_dt_ids cannot be __init
authorArnd Bergmann <[email protected]>
Fri, 25 Jan 2013 14:14:27 +0000 (14:14 +0000)
committerWim Van Sebroeck <[email protected]>
Fri, 1 Mar 2013 11:16:47 +0000 (12:16 +0100)
commit6c41e4748662b47d46331e0e79f3b62b6786d3b9
treecb5eb0f64679a653b00eac60c2a3cb5f3782e64f
parent12a5c05cb143105d989abf728a8c769830670e54
watchdog: at91sam9: at91_wdt_dt_ids cannot be __init

The device IDs are referenced by the driver and potentially
used beyond the init time, as kbuild correctly warns
about. Remove the __initconst annotation.

Without this patch, building at91_dt_defconfig results in:

WARNING: drivers/watchdog/built-in.o(.data+0x28): Section mismatch in reference from the variable at91wdt_driver to the (unknown reference) .init.rodata:(unknown)
The variable at91wdt_driver references
the (unknown reference) __initconst (unknown)

Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Tested-by: Fabio Porcedda <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Cc: [email protected]
drivers/watchdog/at91sam9_wdt.c