From: Ricardo Neri Date: Fri, 18 May 2012 06:42:35 +0000 (-0500) Subject: ASoC: OMAP: HDMI: Change error values in HDMI CPU DAI X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ff5ee871ff18bb5b66a81353aac1db7e9399d95;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- 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) 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 @@ -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;