Changeset 703 for GPL/trunk/alsa-kernel/pci/cs5535audio/cs5535audio.c
- Timestamp:
- Sep 26, 2021, 6:18:40 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 696-702
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/cs5535audio/cs5535audio.c
r695 r703 148 148 }; 149 149 150 if ((err = snd_ac97_bus(card, 0, &ops, NULL, &pbus)) < 0) 150 err = snd_ac97_bus(card, 0, &ops, NULL, &pbus); 151 if (err < 0) 151 152 return err; 152 153 … … 160 161 olpc_prequirks(card, &ac97); 161 162 162 if ((err = snd_ac97_mixer(pbus, &ac97, &cs5535au->ac97)) < 0) { 163 err = snd_ac97_mixer(pbus, &ac97, &cs5535au->ac97); 164 if (err < 0) { 163 165 dev_err(card->dev, "mixer failed\n"); 164 166 return err; … … 271 273 272 274 *rcs5535au = NULL; 273 if ((err = pci_enable_device(pci)) < 0) 275 err = pci_enable_device(pci); 276 if (err < 0) 274 277 return err; 275 278 … … 291 294 cs5535au->irq = -1; 292 295 293 if ((err = pci_request_regions(pci, "CS5535 Audio")) < 0) { 296 err = pci_request_regions(pci, "CS5535 Audio"); 297 if (err < 0) { 294 298 kfree(cs5535au); 295 299 goto pcifail; … … 309 313 pci_set_master(pci); 310 314 311 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL,312 cs5535au, &ops))< 0)315 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, cs5535au, &ops); 316 if (err < 0) 313 317 goto sndfail; 314 318 … … 345 349 return err; 346 350 347 if ((err = snd_cs5535audio_create(card, pci, &cs5535au)) < 0) 351 err = snd_cs5535audio_create(card, pci, &cs5535au); 352 if (err < 0) 348 353 goto probefail_out; 349 354 350 355 card->private_data = cs5535au; 351 356 352 if ((err = snd_cs5535audio_mixer(cs5535au)) < 0) 357 err = snd_cs5535audio_mixer(cs5535au); 358 if (err < 0) 353 359 goto probefail_out; 354 360 355 if ((err = snd_cs5535audio_pcm(cs5535au)) < 0) 361 err = snd_cs5535audio_pcm(cs5535au); 362 if (err < 0) 356 363 goto probefail_out; 357 364 … … 363 370 cs5535au->port, cs5535au->irq); 364 371 365 if ((err = snd_card_register(card)) < 0) 372 err = snd_card_register(card); 373 if (err < 0) 366 374 goto probefail_out; 367 375
Note:
See TracChangeset
for help on using the changeset viewer.