Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57861
b: refs/heads/master
c: 41e904d
h: refs/heads/master
i:
  57859: 592104d
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Jun 19, 2007
1 parent 2726082 commit 48448e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: fa490cfd15d7ce0900097cc4e60cfd7a76381138
refs/heads/master: 41e904dee22066ae7ac3a7f695b2c8bd43ce4e04
8 changes: 5 additions & 3 deletions trunk/sound/ppc/pmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,8 @@ static int snd_pmac_free(struct snd_pmac *chip)
out_le32(&chip->awacs->control, in_le32(&chip->awacs->control) & 0xfff);
}

snd_pmac_sound_feature(chip, 0);
if (chip->node)
snd_pmac_sound_feature(chip, 0);

/* clean up mixer if any */
if (chip->mixer_free)
Expand Down Expand Up @@ -925,6 +926,7 @@ static int __init snd_pmac_detect(struct snd_pmac *chip)
}
if (! sound) {
of_node_put(chip->node);
chip->node = NULL;
return -ENODEV;
}
prop = of_get_property(sound, "sub-frame", NULL);
Expand All @@ -937,7 +939,9 @@ static int __init snd_pmac_detect(struct snd_pmac *chip)
printk(KERN_INFO "snd-powermac no longer handles any "
"machines with a layout-id property "
"in the device-tree, use snd-aoa.\n");
of_node_put(sound);
of_node_put(chip->node);
chip->node = NULL;
return -ENODEV;
}
/* This should be verified on older screamers */
Expand Down Expand Up @@ -1297,8 +1301,6 @@ int __init snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return)
return 0;

__error:
if (chip->pdev)
pci_dev_put(chip->pdev);
snd_pmac_free(chip);
return err;
}
Expand Down

0 comments on commit 48448e1

Please sign in to comment.