diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-30 11:51:04 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-12 11:11:24 -0500 |
commit | 443e67ed8d40c0e08619f087da4332dbbff47954 (patch) | |
tree | 41c4fbbe7f29a9441ec8febd2f3f6a8e86c2713d /drivers/mfd/wm8994-core.c | |
parent | 43913e5ef9e9e05141418577523456e6b23777eb (diff) |
mfd: Correct revision display for WM1811 revision D
As WM1811 revision C was transparent to software the revision IDs for
subsequent revisions are one less than they would normally be. Correct
for this in log messages.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm8994-core.c')
-rw-r--r-- | drivers/mfd/wm8994-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index f9c4016baea6..12bd0eed0b2e 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c | |||
@@ -460,6 +460,11 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq) | |||
460 | break; | 460 | break; |
461 | } | 461 | } |
462 | break; | 462 | break; |
463 | case WM1811: | ||
464 | /* Revision C did not change the relevant layer */ | ||
465 | if (ret > 1) | ||
466 | ret++; | ||
467 | break; | ||
463 | default: | 468 | default: |
464 | break; | 469 | break; |
465 | } | 470 | } |