powerpc/watchdog: move booke watchdog param related code to setup-common.c
authorShaohui Xie <Shaohui.Xie@freescale.com>
Wed, 11 Jul 2012 09:56:08 +0000 (17:56 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 11 Jul 2012 12:44:03 +0000 (07:44 -0500)
commitc5f02bb422352ea6a272953e5ac7046111ddcd87
treef66c23ebd0c896ed6a4cc0eb1d5fb6728e3a1aae
parentb5dc2986879c2a6c65a3cfede7ba6de3531a0f3e
powerpc/watchdog: move booke watchdog param related code to setup-common.c

Currently, BOOKE watchdog code for checking "wdt" and "wdt_period" is
in setup_32.c, it cannot be used in 64-bit, so move it to a common place
setup-common.c, which will be shared by 32-bit and 64-bit.

Also, replace the simple_strtoul with kstrtol.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/setup_32.c