]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: orion: move watchdog setup to mach-orion5x
authorArnd Bergmann <arnd@arndb.de>
Wed, 2 Dec 2015 21:27:03 +0000 (22:27 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 7 Dec 2015 17:09:32 +0000 (18:09 +0100)
commit06f3008a6a7454389a82495eb1fc132c2b0710f6
tree9b304f00b1332bcf2dc73bcd9fd76507e8877c2b
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
ARM: orion: move watchdog setup to mach-orion5x

The watchdog device node is created in plat-orion/common.c
but depends on the bridge address that is platform specific,
so as a preparation for orion multiplatform support, we
move it out of the common code into orion5x and dove.

At the moment, dove does not use the watchdog, so I'm marking
the function as __maybe_unused for the moment. The compiler
will be able to compile out the device definition this way,
and we can easily add it later.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/mach-dove/common.c
arch/arm/mach-orion5x/common.c
arch/arm/plat-orion/common.c
arch/arm/plat-orion/include/plat/common.h