]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ixp46x: remove NO_IRQ handling
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Sep 2016 19:20:36 +0000 (21:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2016 23:57:02 +0000 (16:57 -0700)
commit4e61b0c7ceb690416b5e909e4cf05ec6ed633320
treeac7c40ce165522ce5b6c9a1ff443ce635136980d
parent00a587b25d24c46f72d9d17cc39e1a62b87e98ea
ptp: ixp46x: remove NO_IRQ handling

gpio_to_irq does not return NO_IRQ but instead returns a negative
error code on failure. Returning NO_IRQ from the function has no
negative effects as we only compare the result to the expected
interrupt number, but it's better to return a proper failure
code for consistency, and we should remove NO_IRQ from the kernel
entirely.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ixp46x.c