projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d04943
)
staging: octeon: check request_irq() return value
author
Kulikov Vasiliy
<segooon@gmail.com>
Fri, 30 Jul 2010 11:07:42 +0000
(15:07 +0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 3 Aug 2010 01:23:44 +0000
(18:23 -0700)
request_irq() may fail, if so propagate error code.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/octeon/ethernet-spi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/octeon/ethernet-spi.c
b/drivers/staging/octeon/ethernet-spi.c
index b58b8971f93938327e28e0c9761024ce7913ca2d..970825421884d44526385d7782d4faa40207501c 100644
(file)
--- a/
drivers/staging/octeon/ethernet-spi.c
+++ b/
drivers/staging/octeon/ethernet-spi.c
@@
-294,6
+294,8
@@
int cvm_oct_spi_init(struct net_device *dev)
if (number_spi_ports == 0) {
r = request_irq(OCTEON_IRQ_RML, cvm_oct_spi_rml_interrupt,
IRQF_SHARED, "SPI", &number_spi_ports);
+ if (r)
+ return r;
}
number_spi_ports++;