summaryrefslogtreecommitdiff
path: root/include/sound/ymfpci.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-03-28 22:32:32 +0200
committerAdrian Bunk <bunk@stusta.de>2007-03-28 22:32:32 +0200
commit8e617c8834fe2dde4e88ea9c2dcd9530c5b30839 (patch)
tree79f4d58bc6b824e2447907e4473074fecae2e452 /include/sound/ymfpci.h
parent4eebc3a634130b6fc051034de488dfaff543e642 (diff)
[ALSA] Fix invalid assignment of PCI revision
Fix the type of PCI revision to char from int and avoid invalid assignment with pointer cast. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'include/sound/ymfpci.h')
-rw-r--r--include/sound/ymfpci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/ymfpci.h b/include/sound/ymfpci.h
index d567bfdbf513..efb9d5029a37 100644
--- a/include/sound/ymfpci.h
+++ b/include/sound/ymfpci.h
@@ -285,7 +285,7 @@ struct snd_ymfpci {
int irq;
unsigned int device_id; /* PCI device ID */
- unsigned int rev; /* PCI revision */
+ unsigned char rev; /* PCI revision */
unsigned long reg_area_phys;
void __iomem *reg_area_virt;
struct resource *res_reg_area;