diff options
Diffstat (limited to 'sound/soc/samsung/s3c24xx_uda134x.c')
| -rw-r--r-- | sound/soc/samsung/s3c24xx_uda134x.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index dc9d551f6788..548c6ac6e7b0 100644 --- a/sound/soc/samsung/s3c24xx_uda134x.c +++ b/sound/soc/samsung/s3c24xx_uda134x.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | #include <linux/clk.h> | 14 | #include <linux/clk.h> |
| 15 | #include <linux/gpio.h> | 15 | #include <linux/gpio.h> |
| 16 | #include <linux/module.h> | ||
| 16 | 17 | ||
| 17 | #include <sound/soc.h> | 18 | #include <sound/soc.h> |
| 18 | #include <sound/s3c24xx_uda134x.h> | 19 | #include <sound/s3c24xx_uda134x.h> |
| @@ -66,17 +67,17 @@ static int s3c24xx_uda134x_startup(struct snd_pcm_substream *substream) | |||
| 66 | pr_debug("%s %d\n", __func__, clk_users); | 67 | pr_debug("%s %d\n", __func__, clk_users); |
| 67 | if (clk_users == 0) { | 68 | if (clk_users == 0) { |
| 68 | xtal = clk_get(&s3c24xx_uda134x_snd_device->dev, "xtal"); | 69 | xtal = clk_get(&s3c24xx_uda134x_snd_device->dev, "xtal"); |
| 69 | if (!xtal) { | 70 | if (IS_ERR(xtal)) { |
| 70 | printk(KERN_ERR "%s cannot get xtal\n", __func__); | 71 | printk(KERN_ERR "%s cannot get xtal\n", __func__); |
| 71 | ret = -EBUSY; | 72 | ret = PTR_ERR(xtal); |
| 72 | } else { | 73 | } else { |
| 73 | pclk = clk_get(&s3c24xx_uda134x_snd_device->dev, | 74 | pclk = clk_get(&s3c24xx_uda134x_snd_device->dev, |
| 74 | "pclk"); | 75 | "pclk"); |
| 75 | if (!pclk) { | 76 | if (IS_ERR(pclk)) { |
| 76 | printk(KERN_ERR "%s cannot get pclk\n", | 77 | printk(KERN_ERR "%s cannot get pclk\n", |
| 77 | __func__); | 78 | __func__); |
| 78 | clk_put(xtal); | 79 | clk_put(xtal); |
| 79 | ret = -EBUSY; | 80 | ret = PTR_ERR(pclk); |
| 80 | } | 81 | } |
| 81 | } | 82 | } |
| 82 | if (!ret) { | 83 | if (!ret) { |
