summaryrefslogtreecommitdiff
path: root/sound/pci/hda/ca0132_regs.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-02-12 09:15:15 (GMT)
committerTakashi Iwai <tiwai@suse.de>2013-02-12 09:15:15 (GMT)
commit4a8b89f99534af1deaae73679797c27e77661ef0 (patch)
treec7662e6ce9da05086ad478e1f5828e9246e733b8 /sound/pci/hda/ca0132_regs.h
parentd911149625e64ec3cbc92725a2c2c5d940b62ffb (diff)
downloadlinux-fsl-qoriq-4a8b89f99534af1deaae73679797c27e77661ef0.tar.xz
ALSA: hda/ca0132 - Fix type of INVALID_CHIP_ADDRESS
The chip address is 32bit long but INVALID_CHIP_ADDRESS is defined as an unsigned long. This makes dsp_chip_to_dsp_addx() misbehaving on 64bit architectures. Fix the INVALID_CHIP_ADDRESS definition to be 32bit. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/ca0132_regs.h')
-rw-r--r--sound/pci/hda/ca0132_regs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/ca0132_regs.h b/sound/pci/hda/ca0132_regs.h
index 831ca9c..07e7609 100644
--- a/sound/pci/hda/ca0132_regs.h
+++ b/sound/pci/hda/ca0132_regs.h
@@ -337,7 +337,7 @@
#define DSPDMAC_ACTIVE_WFR_MASK 0xFFF000
#define DSP_AUX_MEM_BASE 0xE000
-#define INVALID_CHIP_ADDRESS (~0UL)
+#define INVALID_CHIP_ADDRESS (~0U)
#define X_SIZE (XRAM_XRAM_CHANNEL_COUNT * XRAM_XRAM_CHAN_INCR)
#define Y_SIZE (YRAM_YRAM_CHANNEL_COUNT * YRAM_YRAM_CHAN_INCR)