From: Andrew Lunn <andrew@lunn.ch>
To: David Miller <davem@davemloft.net>
Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>,
Florian Fainelli <f.fainelli@gmail.com>,
netdev <netdev@vger.kernel.org>, Andrew Lunn <andrew@lunn.ch>
Subject: [PATCH net-next 1/3] net: dsa: mv88e6xxx: Remove OF check for IRQ domain
Date: Sat, 19 May 2018 22:31:33 +0200 [thread overview]
Message-ID: <1526761895-15839-2-git-send-email-andrew@lunn.ch> (raw)
In-Reply-To: <1526761895-15839-1-git-send-email-andrew@lunn.ch>
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>
---
drivers/net/dsa/mv88e6xxx/global2.c | 3 ---
1 file changed, 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)
--
2.17.0
next prev parent reply other threads:[~2018-05-19 20:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-19 20:31 [PATCH net-next 0/3] Platform data support for mv88exxx Andrew Lunn
2018-05-19 20:31 ` Andrew Lunn [this message]
2018-05-19 22:47 ` [PATCH net-next 1/3] net: dsa: mv88e6xxx: Remove OF check for IRQ domain Florian Fainelli
2018-05-19 20:31 ` [PATCH net-next 2/3] net: dsa: mv88e6xxx: Add minimal platform_data support Andrew Lunn
2018-05-19 22:52 ` Florian Fainelli
2018-05-19 20:31 ` [PATCH net-next 3/3] net: dsa: mv88e6xxx: Add support for EEPROM via platform data Andrew Lunn
2018-05-19 22:52 ` Florian Fainelli
2018-05-20 22:58 ` [PATCH net-next 0/3] Platform data support for mv88exxx David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1526761895-15839-2-git-send-email-andrew@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=vivien.didelot@savoirfairelinux.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).