mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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>
This commit is contained in:
parent
43913e5ef9
commit
443e67ed8d
1 changed files with 5 additions and 0 deletions
|
@ -460,6 +460,11 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq)
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case WM1811:
|
||||
/* Revision C did not change the relevant layer */
|
||||
if (ret > 1)
|
||||
ret++;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue