]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 30 Jan 2013 19:50:00 +0000 (20:50 +0100)
commit4aab051f141cbd889c0707513f082b6c255437b2
treee532791df0b2281fb815197f231c4294b905eed3
parent4311fe21be5ecbec0b59b6ffac954fa65d7a8544
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