ARM: orion: move watchdog setup to mach-orion5x
authorArnd Bergmann <arnd@arndb.de>
Wed, 2 Dec 2015 21:27:03 +0000 (22:27 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 17 Mar 2016 01:25:23 +0000 (01:25 +0000)
commitb8dc025490d912561feafcd9401864e7366d9376
tree0d516c2100cf8eaffb0cbaffabab0ebaba344e80
parent8efd9c23c9f77fb18b5a67f3ed2a69bc4bef1103
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>
Gbp-Pq: Topic features/arm
Gbp-Pq: Name arm-orion-move-watchdog-setup-to-mach-orion5x.patch
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