MIPS: ath79: use dynamically allocated watchdog device
authorGabor Juhos <juhosg@openwrt.org>
Thu, 27 Dec 2012 14:38:25 +0000 (15:38 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 1 Mar 2013 11:22:29 +0000 (12:22 +0100)
commit0f2ad9ed7c6fecb008372e8a709595a2a21059aa
tree72042d4dd40ca8b85d7b8072b2482f0f974b8391
parent5071a88475b758bf60191e53606463fe7290c71e
MIPS: ath79: use dynamically allocated watchdog device

Remove the static watchdog device variable and use
the 'platform_device_register_simple' helper to
allocate and register the device in one step.

This allows us to save a few bytes in the kernel image.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
arch/mips/ath79/dev-common.c