mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] handle errors returned by platform_get_irq*()
platform_get_irq*() now returns on -ENXIO when the resource cannot be found. Ensure all users of platform_get_irq*() handle this error appropriately. Signed-off-by: David Vrabel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
305b3228f9
commit
489447380a
19 changed files with 60 additions and 10 deletions
|
|
@ -674,6 +674,11 @@ static int au_ide_probe(struct device *dev)
|
|||
ret = -ENODEV;
|
||||
goto out;
|
||||
}
|
||||
if (ahwif->irq < 0) {
|
||||
pr_debug("%s %d: no IRQ\n", DRV_NAME, pdev->id);
|
||||
ret = -ENODEV;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!request_mem_region (res->start, res->end-res->start, pdev->name)) {
|
||||
pr_debug("%s: request_mem_region failed\n", DRV_NAME);
|
||||
|
|
|
|||
Loading…
Reference in a new issue