Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33208
b: refs/heads/master
c: 545b07d
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and Jaroslav Kysela committed Aug 3, 2006
1 parent 2b04bac commit b5cdeda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: 6e8331ac6973435b1e7604c30f2ad394035b46e1
refs/heads/master: 545b07d3620c9eac3349398b5303d20cab260ff6
13 changes: 3 additions & 10 deletions trunk/sound/ppc/powermac.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,21 +181,14 @@ static int __init alsa_card_pmac_init(void)
if ((err = platform_driver_register(&snd_pmac_driver)) < 0)
return err;
device = platform_device_register_simple(SND_PMAC_DRIVER, -1, NULL, 0);
if (!IS_ERR(device)) {
if (platform_get_drvdata(device))
return 0;
platform_device_unregister(device);
err = -ENODEV;
} else
err = PTR_ERR(device);
platform_driver_unregister(&snd_pmac_driver);
return err;
return 0;

}

static void __exit alsa_card_pmac_exit(void)
{
platform_device_unregister(device);
if (!IS_ERR(device))
platform_device_unregister(device);
platform_driver_unregister(&snd_pmac_driver);
}

Expand Down

0 comments on commit b5cdeda

Please sign in to comment.