mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -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
|
|
@ -1457,7 +1457,7 @@ static int __init sa1100fb_probe(struct platform_device *pdev)
|
|||
int ret, irq;
|
||||
|
||||
irq = platform_get_irq(pdev, 0);
|
||||
if (irq <= 0)
|
||||
if (irq < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (!request_mem_region(0xb0100000, 0x10000, "LCD"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue