aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/imx-sgtl5000.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/fsl/imx-sgtl5000.c')
-rw-r--r--sound/soc/fsl/imx-sgtl5000.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
index 3f726e4f88db..46c5b4fdfc52 100644
--- a/sound/soc/fsl/imx-sgtl5000.c
+++ b/sound/soc/fsl/imx-sgtl5000.c
@@ -13,7 +13,7 @@
13#include <linux/module.h> 13#include <linux/module.h>
14#include <linux/of.h> 14#include <linux/of.h>
15#include <linux/of_platform.h> 15#include <linux/of_platform.h>
16#include <linux/of_i2c.h> 16#include <linux/i2c.h>
17#include <linux/clk.h> 17#include <linux/clk.h>
18#include <sound/soc.h> 18#include <sound/soc.h>
19 19
@@ -129,8 +129,10 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
129 } 129 }
130 130
131 data->codec_clk = devm_clk_get(&codec_dev->dev, NULL); 131 data->codec_clk = devm_clk_get(&codec_dev->dev, NULL);
132 if (IS_ERR(data->codec_clk)) 132 if (IS_ERR(data->codec_clk)) {
133 ret = PTR_ERR(data->codec_clk);
133 goto fail; 134 goto fail;
135 }
134 136
135 data->clk_frequency = clk_get_rate(data->codec_clk); 137 data->clk_frequency = clk_get_rate(data->codec_clk);
136 138