mfd: Fix WM8994 IRQ register cache restore on resume
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Jun 2011 10:49:42 +0000 (11:49 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:21 +0000 (23:28 +0200)
commit98ae1ccaf62d5006884e01159bf7a63174b0fc03
treea0c293451f24aad6a823d7b1e7a12e49878c69ff
parent78bb3688ea1830672b8095fb6388593f582cd591
mfd: Fix WM8994 IRQ register cache restore on resume

When the byte swap was factored out into the per-register I/O functions
the register restore for the IRQ mask cache (which we use and store in
CPU native format for the interrupt handler) was not updated to do a byte
swap when it uses the bulk I/O. Fix this by writing the cache out one
register at a time.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8994-core.c