]> git.baikalelectronics.ru Git - kernel.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)
commit558d2067aa83889c9ea86e555d85abe3bc8c0478
tree9b304f00b1332bcf2dc73bcd9fd76507e8877c2b
parent2715d332e6151136472842d51b2ec873c0652275
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