mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-10 22:54:11 +08:00
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>
This commit is contained in:
parent
54ac0a0f72
commit
238e4f44c0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user