aboutsummaryrefslogtreecommitdiff
path: root/sound/pci/ice1712/wm8766.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ice1712/wm8766.c')
-rw-r--r--sound/pci/ice1712/wm8766.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ice1712/wm8766.c b/sound/pci/ice1712/wm8766.c
index 8072adeecf6..e473f8a88f9 100644
--- a/sound/pci/ice1712/wm8766.c
+++ b/sound/pci/ice1712/wm8766.c
@@ -31,7 +31,7 @@
static void snd_wm8766_write(struct snd_wm8766 *wm, u16 addr, u16 data)
{
- if (addr < WM8766_REG_RESET)
+ if (addr < WM8766_REG_COUNT)
wm->regs[addr] = data;
wm->ops.write(wm, addr, data);
}