diff options
author | Ricardo Neri <ricardo.neri@ti.com> | 2012-05-18 02:42:35 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@ti.com> | 2012-05-22 12:33:23 -0400 |
commit | 0ff5ee871ff18bb5b66a81353aac1db7e9399d95 (patch) | |
tree | aef66ac29f1b3baf8bfbde0c831f4cf128b17b29 /sound/soc/omap/omap-hdmi.c | |
parent | e412ec64bd598d7c41edc00aed8de67b2fa19754 (diff) |
ASoC: OMAP: HDMI: Change error values in HDMI CPU DAI
When getting the needed resources fails, return -ENODEV. This is more
in line with other drivers do and it gives a more descriptive error.
Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/omap/omap-hdmi.c')
-rw-r--r-- | sound/soc/omap/omap-hdmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/omap/omap-hdmi.c b/sound/soc/omap/omap-hdmi.c index 0925a46f9f4e..b889f7668c81 100644 --- a/sound/soc/omap/omap-hdmi.c +++ b/sound/soc/omap/omap-hdmi.c | |||
@@ -106,7 +106,7 @@ static __devinit int omap_hdmi_probe(struct platform_device *pdev) | |||
106 | hdmi_rsrc = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 106 | hdmi_rsrc = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
107 | if (!hdmi_rsrc) { | 107 | if (!hdmi_rsrc) { |
108 | dev_err(&pdev->dev, "Cannot obtain IORESOURCE_MEM HDMI\n"); | 108 | dev_err(&pdev->dev, "Cannot obtain IORESOURCE_MEM HDMI\n"); |
109 | return -EINVAL; | 109 | return -ENODEV; |
110 | } | 110 | } |
111 | 111 | ||
112 | omap_hdmi_dai_dma_params.port_addr = hdmi_rsrc->start | 112 | omap_hdmi_dai_dma_params.port_addr = hdmi_rsrc->start |
@@ -115,7 +115,7 @@ static __devinit int omap_hdmi_probe(struct platform_device *pdev) | |||
115 | hdmi_rsrc = platform_get_resource(pdev, IORESOURCE_DMA, 0); | 115 | hdmi_rsrc = platform_get_resource(pdev, IORESOURCE_DMA, 0); |
116 | if (!hdmi_rsrc) { | 116 | if (!hdmi_rsrc) { |
117 | dev_err(&pdev->dev, "Cannot obtain IORESOURCE_DMA HDMI\n"); | 117 | dev_err(&pdev->dev, "Cannot obtain IORESOURCE_DMA HDMI\n"); |
118 | return -EINVAL; | 118 | return -ENODEV; |
119 | } | 119 | } |
120 | 120 | ||
121 | omap_hdmi_dai_dma_params.dma_req = hdmi_rsrc->start; | 121 | omap_hdmi_dai_dma_params.dma_req = hdmi_rsrc->start; |