]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog: at91sam9: at91_wdt_dt_ids cannot be __init
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 Jan 2013 14:14:27 +0000 (14:14 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 28 Jan 2013 21:05:40 +0000 (22:05 +0100)
commitd6a4c52b7cd6682156ee8dbc7f38bcc96a152222
tree9433741cd72d97687add919750559a3af201e289
parenta8622e191bd0b75782897d5eaf35b9353c26500b
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 <arnd@arndb.de>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Tested-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Cc: linux-watchdog@vger.kernel.org
drivers/watchdog/at91sam9_wdt.c