net: dsa: b53: Fix for failure when irq is not defined in dt
commit49731b4b109090f1f2a7323c19f13ba046c044d9
authorArun Parameswaran <arun.parameswaran@broadcom.com>
Fri, 8 Feb 2019 00:01:18 +0000 (7 16:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:34 +0000 (12 20:02 +0100)
tree857a6dba7a86d57fee97a0d0d3507df027d70594
parentf4016379d01c17ea09dbdaac4c485139376ec734
net: dsa: b53: Fix for failure when irq is not defined in dt

[ Upstream commit 39841cc1cbb69344539c98a1fa9d858ed124c7ba ]

Fixes the issues with non BCM58XX chips in the b53 driver
failing, when the irq is not specified in the device tree.

Removed the check for BCM58XX in b53_srab_prepare_irq(),
so the 'port->irq' will be set to '-EXIO' if the irq is not
specified in the device tree.

Fixes: 16994374a6fc ("net: dsa: b53: Make SRAB driver manage port interrupts")
Fixes: b2ddc48a81b5 ("net: dsa: b53: Do not fail when IRQ are not initialized")
Signed-off-by: Arun Parameswaran <arun.parameswaran@broadcom.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/b53/b53_srab.c