diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-11-16 16:38:33 +0100 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2016-11-29 02:23:49 +0100 |
commit | 238e4f44c05644089968fbd1a701a6be58ddb546 (patch) | |
tree | 15f43be49396334df20f44aeacebaede8ff50772 /drivers/gpu/drm/fsl-dcu | |
parent | drm/fsl-dcu: Remove unneeded NULL check (diff) | |
download | linux-238e4f44c05644089968fbd1a701a6be58ddb546.tar.xz linux-238e4f44c05644089968fbd1a701a6be58ddb546.zip |
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 <fabio.estevam@nxp.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'drivers/gpu/drm/fsl-dcu')
-rw-r--r-- | drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |