watchdog: omap_wdt: raw read and write endian fix
authorVictor Kamensky <victor.kamensky@linaro.org>
Sat, 16 Nov 2013 00:01:05 +0000 (02:01 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 17 Nov 2013 18:42:38 +0000 (19:42 +0100)
commit4a7e94a0637da7e1ddce748da49ae780c370eeef
tree561c2e0628f2d4851593e57bb48f45facb7b2a70
parentb0df38dd3554d47fcfd5c1183951c2fe7dd07eda
watchdog: omap_wdt: raw read and write endian fix

All OMAP IP blocks expect LE data, but CPU may operate in BE mode.
Need to use endian neutral functions to read/write h/w registers.
I.e instead of __raw_read[lw] and __raw_write[lw] functions code
need to use read[lw]_relaxed and write[lw]_relaxed functions.
If the first simply reads/writes register, the second will byteswap
it if host operates in BE mode.

Changes are trivial sed like replacement of __raw_xxx functions
with xxx_relaxed variant.

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/omap_wdt.c