diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-11-16 13:38:33 -0200 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2016-11-28 17:23:49 -0800 |
commit | 238e4f44c05644089968fbd1a701a6be58ddb546 (patch) | |
tree | 15f43be49396334df20f44aeacebaede8ff50772 /drivers/gpu/drm/fsl-dcu | |
parent | 54ac0a0f72cdf66634c1321addd32eaadb0f022d (diff) | |
download | op-kernel-dev-238e4f44c05644089968fbd1a701a6be58ddb546.zip op-kernel-dev-238e4f44c05644089968fbd1a701a6be58ddb546.tar.gz |
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 2ecbb49..f242e64 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, |