diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-05-19 23:31:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-21 01:58:27 +0300 |
commit | 577941eb56fe5fd95e1a60c6dba3dfaf606e3fde (patch) | |
tree | 50a1fe4270c8160c4b63fbecf4b5d1d3c35de5eb /drivers/net/dsa/mv88e6xxx/global2.c | |
parent | 81ee33d87362ac542cd8ad6d6fb7b886a51e2c96 (diff) | |
download | linux-577941eb56fe5fd95e1a60c6dba3dfaf606e3fde.tar.xz |
net: dsa: mv88e6xxx: Remove OF check for IRQ domain
An IRQ domain will work without an OF node. It is not possible to
reference interrupts via a phandle, but C code can still use
irq_find_mapping() to get an interrupt from the domain.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/global2.c')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/global2.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/global2.c b/drivers/net/dsa/mv88e6xxx/global2.c index f9bde011a3e6..91a3cb2452ac 100644 --- a/drivers/net/dsa/mv88e6xxx/global2.c +++ b/drivers/net/dsa/mv88e6xxx/global2.c @@ -1047,9 +1047,6 @@ int mv88e6xxx_g2_irq_setup(struct mv88e6xxx_chip *chip) { int err, irq, virq; - if (!chip->dev->of_node) - return -EINVAL; - chip->g2_irq.domain = irq_domain_add_simple( chip->dev->of_node, 16, 0, &mv88e6xxx_g2_irq_domain_ops, chip); if (!chip->g2_irq.domain) |