Skip to content

Commit

Permalink
ASoC: OMAP: HDMI: Change error values in HDMI CPU DAI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ricardo Neri authored and lrg-ti committed May 22, 2012
1 parent e412ec6 commit 0ff5ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/omap/omap-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static __devinit int omap_hdmi_probe(struct platform_device *pdev)
hdmi_rsrc = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!hdmi_rsrc) {
dev_err(&pdev->dev, "Cannot obtain IORESOURCE_MEM HDMI\n");
return -EINVAL;
return -ENODEV;
}

omap_hdmi_dai_dma_params.port_addr = hdmi_rsrc->start
Expand All @@ -115,7 +115,7 @@ static __devinit int omap_hdmi_probe(struct platform_device *pdev)
hdmi_rsrc = platform_get_resource(pdev, IORESOURCE_DMA, 0);
if (!hdmi_rsrc) {
dev_err(&pdev->dev, "Cannot obtain IORESOURCE_DMA HDMI\n");
return -EINVAL;
return -ENODEV;
}

omap_hdmi_dai_dma_params.dma_req = hdmi_rsrc->start;
Expand Down

0 comments on commit 0ff5ee8

Please sign in to comment.