From: Fabio Estevam Date: Wed, 16 Nov 2016 15:38:33 +0000 (-0200) Subject: drm/fsl-dcu: Propagate the real error code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=238e4f44c05644089968fbd1a701a6be58ddb546;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/fsl-dcu: Propagate the real error code In case of platform_get_irq() failure, let's propagate the real error code, instead of a 'fake' one. Signed-off-by: Fabio Estevam Signed-off-by: Stefan Agner --- diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c index 2ecbb4942b80..f242e64c76ca 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c @@ -346,7 +346,7 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) fsl_dev->irq = platform_get_irq(pdev, 0); if (fsl_dev->irq < 0) { dev_err(dev, "failed to get irq\n"); - return -ENXIO; + return fsl_dev->irq; } fsl_dev->regmap = devm_regmap_init_mmio(dev, base,