]> git.karo-electronics.de Git - karo-tx-linux.git/commit
booke/watchdog: refine and clean up the codes
authorTang Yuantian <yuantian.tang@freescale.com>
Thu, 8 May 2014 02:04:26 +0000 (10:04 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 26 May 2014 21:04:52 +0000 (23:04 +0200)
commit079dfdbec4597e9f9448789b19d16877a4da4dab
tree7c63c2c3c28808b5bedd02686639d1255b5ac744
parentfcf68db872e0d5d225aa56959c44462ddaed4ee7
booke/watchdog: refine and clean up the codes

Basically, this patch does the following:
1. Move the codes of parsing boot parameters from setup-common.c
   to driver. In this way, code reader can know directly that
   there are boot parameters that can change the timeout.
2. Make boot parameter 'booke_wdt_period' effective.
   currently, when driver is loaded, default timeout is always
   being used in stead of booke_wdt_period.
3. Wrap up the watchdog timeout in device struct and clean up
   unnecessary codes.

Signed-off-by: Tang Yuantian <yuantian.tang@freescale.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Reviewed-by: Li Yang <leoli@freescale.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
arch/powerpc/kernel/setup-common.c
drivers/watchdog/booke_wdt.c