Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26324
b: refs/heads/master
c: a182ee9
h: refs/heads/master
v: v3
  • Loading branch information
Rene Herman authored and Jaroslav Kysela committed Apr 27, 2006
1 parent 64a7731 commit 3cb5d08
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 41 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c59e09d7e51f5781439aa6f1963076568fd1f4f
refs/heads/master: a182ee9876c7826d0b8f7789cb5c38c5bfbec441
14 changes: 4 additions & 10 deletions trunk/sound/drivers/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,25 +675,19 @@ static int __init alsa_card_dummy_init(void)
continue;
device = platform_device_register_simple(SND_DUMMY_DRIVER,
i, NULL, 0);
if (IS_ERR(device)) {
err = PTR_ERR(device);
goto errout;
}
if (IS_ERR(device))
continue;
devices[i] = device;
cards++;
}
if (!cards) {
#ifdef MODULE
printk(KERN_ERR "Dummy soundcard not found or device busy\n");
#endif
err = -ENODEV;
goto errout;
snd_dummy_unregister_all();
return -ENODEV;
}
return 0;

errout:
snd_dummy_unregister_all();
return err;
}

static void __exit alsa_card_dummy_exit(void)
Expand Down
14 changes: 4 additions & 10 deletions trunk/sound/drivers/mpu401/mpu401.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,8 @@ static int __init alsa_card_mpu401_init(void)
#endif
device = platform_device_register_simple(SND_MPU401_DRIVER,
i, NULL, 0);
if (IS_ERR(device)) {
err = PTR_ERR(device);
goto errout;
}
if (IS_ERR(device))
continue;
platform_devices[i] = device;
snd_mpu401_devices++;
}
Expand All @@ -266,14 +264,10 @@ static int __init alsa_card_mpu401_init(void)
#ifdef MODULE
printk(KERN_ERR "MPU-401 device not found or device busy\n");
#endif
err = -ENODEV;
goto errout;
snd_mpu401_unregister_all();
return -ENODEV;
}
return 0;

errout:
snd_mpu401_unregister_all();
return err;
}

static void __exit alsa_card_mpu401_exit(void)
Expand Down
14 changes: 4 additions & 10 deletions trunk/sound/drivers/serial-u16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,25 +996,19 @@ static int __init alsa_card_serial_init(void)
continue;
device = platform_device_register_simple(SND_SERIAL_DRIVER,
i, NULL, 0);
if (IS_ERR(device)) {
err = PTR_ERR(device);
goto errout;
}
if (IS_ERR(device))
continue;
devices[i] = device;
cards++;
}
if (! cards) {
#ifdef MODULE
printk(KERN_ERR "serial midi soundcard not found or device busy\n");
#endif
err = -ENODEV;
goto errout;
snd_serial_unregister_all();
return -ENODEV;
}
return 0;

errout:
snd_serial_unregister_all();
return err;
}

static void __exit alsa_card_serial_exit(void)
Expand Down
14 changes: 4 additions & 10 deletions trunk/sound/drivers/virmidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,25 +169,19 @@ static int __init alsa_card_virmidi_init(void)
continue;
device = platform_device_register_simple(SND_VIRMIDI_DRIVER,
i, NULL, 0);
if (IS_ERR(device)) {
err = PTR_ERR(device);
goto errout;
}
if (IS_ERR(device))
continue;
devices[i] = device;
cards++;
}
if (!cards) {
#ifdef MODULE
printk(KERN_ERR "Card-VirMIDI soundcard not found or device busy\n");
#endif
err = -ENODEV;
goto errout;
snd_virmidi_unregister_all();
return -ENODEV;
}
return 0;

errout:
snd_virmidi_unregister_all();
return err;
}

static void __exit alsa_card_virmidi_exit(void)
Expand Down

0 comments on commit 3cb5d08

Please sign in to comment.