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/ca0106/ca0106_main.c | |
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/ca0106/ca0106_main.c')
-rw-r--r-- | sound/pci/ca0106/ca0106_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 6fa4a302f7de..2adbd003851d 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1283,7 +1283,7 @@ static int __devinit snd_ca0106_create(struct snd_card *card, | |||
1283 | 1283 | ||
1284 | pci_set_master(pci); | 1284 | pci_set_master(pci); |
1285 | /* read revision & serial */ | 1285 | /* read revision & serial */ |
1286 | pci_read_config_byte(pci, PCI_REVISION_ID, (char *)&chip->revision); | 1286 | pci_read_config_byte(pci, PCI_REVISION_ID, &chip->revision); |
1287 | pci_read_config_dword(pci, PCI_SUBSYSTEM_VENDOR_ID, &chip->serial); | 1287 | pci_read_config_dword(pci, PCI_SUBSYSTEM_VENDOR_ID, &chip->serial); |
1288 | pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &chip->model); | 1288 | pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &chip->model); |
1289 | #if 1 | 1289 | #if 1 |