platform_get_irq*() can't return 0 on error since 0 may be a valid IRQ., instead return a -ve error code. platform_get_irq-return-error: - return -ENXIO if platform_get_irq*() can't find the resource. platform_get_irq-fix-users-on-error: - fix all the users of platform_get_irq*() so they do something sensible when it returns an error. David Vrabel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [patch 2/2] handle errors returned by platform_get_irq*()
- From: David Vrabel <[email protected]>
- [patch 1/2] driver core: platform_get_irq*(): return -ENXIO on error
- From: David Vrabel <[email protected]>
- [patch 2/2] handle errors returned by platform_get_irq*()
- References:
- [DRIVER CORE] platform_get_irq*(): return NO_IRQ on error
- From: David Vrabel <[email protected]>
- Re: [DRIVER CORE] platform_get_irq*(): return NO_IRQ on error
- From: Greg KH <[email protected]>
- Re: [DRIVER CORE] platform_get_irq*(): return NO_IRQ on error
- From: David Vrabel <[email protected]>
- Re: [DRIVER CORE] platform_get_irq*(): return NO_IRQ on error
- From: Greg KH <[email protected]>
- [DRIVER CORE] platform_get_irq*(): return NO_IRQ on error
- Prev by Date: RFC: OSS driver removal, a slightly different approach
- Next by Date: [git patch] Move ip2.c and ip2main.c to drivers/char/ip2/
- Previous by thread: Re: [DRIVER CORE] platform_get_irq*(): return NO_IRQ on error
- Next by thread: [patch 1/2] driver core: platform_get_irq*(): return -ENXIO on error
- Index(es):