]> git.baikalelectronics.ru Git - kernel.git/commit
[WATCHDOG] Fix it8712f_wdt.c wrong byte order accessing WDT_TIMEOUT
authorOliver Schuster <oliver.s@inbox.com>
Tue, 1 Apr 2008 15:06:21 +0000 (17:06 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Apr 2008 18:31:05 +0000 (11:31 -0700)
commita205faf8e0ef00fd895413178d88976f0a8720bd
tree15a603c06c3cf93aac29db83c3458f4f73dbda4b
parentc594fb51fac9f5fb4fd518b2e036b06d3accec1d
[WATCHDOG] Fix it8712f_wdt.c wrong byte order accessing WDT_TIMEOUT

This patch corrects an error in the driver it8712f_wdt.  You cannot set
the 16-bit WDT_TIMEOUT access as a 16-bit outw, because the byte
ordering will be wrong.  So just do the high 8 bits as a separate
access.

Signed-off-by: Oliver Schuster <olivers137@aol.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/watchdog/it8712f_wdt.c