diff options
Diffstat (limited to 'sound/atmel/ac97c.c')
-rw-r--r-- | sound/atmel/ac97c.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index b59427d5a697..cb44c74c9702 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c | |||
@@ -773,7 +773,7 @@ static int atmel_ac97c_pcm_new(struct atmel_ac97c *chip) | |||
773 | return err; | 773 | return err; |
774 | } | 774 | } |
775 | retval = snd_pcm_new(chip->card, chip->card->shortname, | 775 | retval = snd_pcm_new(chip->card, chip->card->shortname, |
776 | chip->pdev->id, playback, capture, &pcm); | 776 | 0, playback, capture, &pcm); |
777 | if (retval) | 777 | if (retval) |
778 | return retval; | 778 | return retval; |
779 | 779 | ||
@@ -944,7 +944,7 @@ static int atmel_ac97c_probe(struct platform_device *pdev) | |||
944 | dev_dbg(&pdev->dev, "no peripheral clock\n"); | 944 | dev_dbg(&pdev->dev, "no peripheral clock\n"); |
945 | return PTR_ERR(pclk); | 945 | return PTR_ERR(pclk); |
946 | } | 946 | } |
947 | clk_enable(pclk); | 947 | clk_prepare_enable(pclk); |
948 | 948 | ||
949 | retval = snd_card_new(&pdev->dev, SNDRV_DEFAULT_IDX1, | 949 | retval = snd_card_new(&pdev->dev, SNDRV_DEFAULT_IDX1, |
950 | SNDRV_DEFAULT_STR1, THIS_MODULE, | 950 | SNDRV_DEFAULT_STR1, THIS_MODULE, |
@@ -1122,7 +1122,7 @@ err_ioremap: | |||
1122 | err_request_irq: | 1122 | err_request_irq: |
1123 | snd_card_free(card); | 1123 | snd_card_free(card); |
1124 | err_snd_card_new: | 1124 | err_snd_card_new: |
1125 | clk_disable(pclk); | 1125 | clk_disable_unprepare(pclk); |
1126 | clk_put(pclk); | 1126 | clk_put(pclk); |
1127 | return retval; | 1127 | return retval; |
1128 | } | 1128 | } |
@@ -1139,7 +1139,7 @@ static int atmel_ac97c_suspend(struct device *pdev) | |||
1139 | if (test_bit(DMA_TX_READY, &chip->flags)) | 1139 | if (test_bit(DMA_TX_READY, &chip->flags)) |
1140 | dw_dma_cyclic_stop(chip->dma.tx_chan); | 1140 | dw_dma_cyclic_stop(chip->dma.tx_chan); |
1141 | } | 1141 | } |
1142 | clk_disable(chip->pclk); | 1142 | clk_disable_unprepare(chip->pclk); |
1143 | 1143 | ||
1144 | return 0; | 1144 | return 0; |
1145 | } | 1145 | } |
@@ -1149,7 +1149,7 @@ static int atmel_ac97c_resume(struct device *pdev) | |||
1149 | struct snd_card *card = dev_get_drvdata(pdev); | 1149 | struct snd_card *card = dev_get_drvdata(pdev); |
1150 | struct atmel_ac97c *chip = card->private_data; | 1150 | struct atmel_ac97c *chip = card->private_data; |
1151 | 1151 | ||
1152 | clk_enable(chip->pclk); | 1152 | clk_prepare_enable(chip->pclk); |
1153 | if (cpu_is_at32ap7000()) { | 1153 | if (cpu_is_at32ap7000()) { |
1154 | if (test_bit(DMA_RX_READY, &chip->flags)) | 1154 | if (test_bit(DMA_RX_READY, &chip->flags)) |
1155 | dw_dma_cyclic_start(chip->dma.rx_chan); | 1155 | dw_dma_cyclic_start(chip->dma.rx_chan); |
@@ -1177,7 +1177,7 @@ static int atmel_ac97c_remove(struct platform_device *pdev) | |||
1177 | ac97c_writel(chip, COMR, 0); | 1177 | ac97c_writel(chip, COMR, 0); |
1178 | ac97c_writel(chip, MR, 0); | 1178 | ac97c_writel(chip, MR, 0); |
1179 | 1179 | ||
1180 | clk_disable(chip->pclk); | 1180 | clk_disable_unprepare(chip->pclk); |
1181 | clk_put(chip->pclk); | 1181 | clk_put(chip->pclk); |
1182 | iounmap(chip->regs); | 1182 | iounmap(chip->regs); |
1183 | free_irq(chip->irq, chip); | 1183 | free_irq(chip->irq, chip); |