Commit 82c7c11f authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

Staging: octeon: don't ignore request_irq() return code

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d6dbc012
...@@ -308,7 +308,7 @@ int cvm_oct_rgmii_init(struct net_device *dev) ...@@ -308,7 +308,7 @@ int cvm_oct_rgmii_init(struct net_device *dev)
/* /*
* Due to GMX errata in CN3XXX series chips, it is necessary * Due to GMX errata in CN3XXX series chips, it is necessary
* to take the link down immediately whne the PHY changes * to take the link down immediately when the PHY changes
* state. In order to do this we call the poll function every * state. In order to do this we call the poll function every
* time the RGMII inband status changes. This may cause * time the RGMII inband status changes. This may cause
* problems if the PHY doesn't implement inband status * problems if the PHY doesn't implement inband status
...@@ -317,6 +317,8 @@ int cvm_oct_rgmii_init(struct net_device *dev) ...@@ -317,6 +317,8 @@ int cvm_oct_rgmii_init(struct net_device *dev)
if (number_rgmii_ports == 0) { if (number_rgmii_ports == 0) {
r = request_irq(OCTEON_IRQ_RML, cvm_oct_rgmii_rml_interrupt, r = request_irq(OCTEON_IRQ_RML, cvm_oct_rgmii_rml_interrupt,
IRQF_SHARED, "RGMII", &number_rgmii_ports); IRQF_SHARED, "RGMII", &number_rgmii_ports);
if (r != 0)
return r;
} }
number_rgmii_ports++; number_rgmii_ports++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment