diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-11-16 09:39:07 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@server.perex.cz> | 2006-12-20 02:55:55 -0500 |
commit | 01f681da496831eb3aff5a908cefdafe74dd263b (patch) | |
tree | e2b2aae6e7789139a63e5500774f0687788d53b7 /sound/pci/ymfpci | |
parent | e3a5d59a17e9a42e3f3e0e37342b2679bab2ff43 (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: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/ymfpci')
-rw-r--r-- | sound/pci/ymfpci/ymfpci_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c index 16be1f395484..843dcca1d4a5 100644 --- a/sound/pci/ymfpci/ymfpci_main.c +++ b/sound/pci/ymfpci/ymfpci_main.c | |||
@@ -2291,7 +2291,7 @@ int __devinit snd_ymfpci_create(struct snd_card *card, | |||
2291 | chip->pci = pci; | 2291 | chip->pci = pci; |
2292 | chip->irq = -1; | 2292 | chip->irq = -1; |
2293 | chip->device_id = pci->device; | 2293 | chip->device_id = pci->device; |
2294 | pci_read_config_byte(pci, PCI_REVISION_ID, (u8 *)&chip->rev); | 2294 | pci_read_config_byte(pci, PCI_REVISION_ID, &chip->rev); |
2295 | chip->reg_area_phys = pci_resource_start(pci, 0); | 2295 | chip->reg_area_phys = pci_resource_start(pci, 0); |
2296 | chip->reg_area_virt = ioremap_nocache(chip->reg_area_phys, 0x8000); | 2296 | chip->reg_area_virt = ioremap_nocache(chip->reg_area_phys, 0x8000); |
2297 | pci_set_master(pci); | 2297 | pci_set_master(pci); |