]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2717bab0e11039106e71c1dc75505726e2e97d9
tree72042d4dd40ca8b85d7b8072b2482f0f974b8391
parent81487a9a16e11c0ee8a36ea1b9de67d8695e1e37
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