linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "tip-bot2 for Andy Shevchenko" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org
Subject: [tip: irq/core] irqdomain: Replace open coded of_node_to_fwnode()
Date: Sat, 07 Nov 2020 15:13:54 -0000	[thread overview]
Message-ID: <160476203458.11244.15363644462716481347.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20201030165919.86234-4-andriy.shevchenko@linux.intel.com>

The following commit has been merged into the irq/core branch of tip:

Commit-ID:     c3a877fea962d9d0fb1e3747334699978f566930
Gitweb:        https://git.kernel.org/tip/c3a877fea962d9d0fb1e3747334699978f566930
Author:        Andy Shevchenko <andriy.shevchenko@linux.intel.com>
AuthorDate:    Fri, 30 Oct 2020 18:59:17 +02:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Sat, 07 Nov 2020 11:33:45 +01:00

irqdomain: Replace open coded of_node_to_fwnode()

of_node_to_fwnode() should be used for conversion.  Replace the open coded
variant of it in of_phandle_args_to_fwspec().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20201030165919.86234-4-andriy.shevchenko@linux.intel.com

---
 kernel/irq/irqdomain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index cf8b374..831526f 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -737,7 +737,7 @@ static void of_phandle_args_to_fwspec(struct device_node *np, const u32 *args,
 {
 	int i;
 
-	fwspec->fwnode = np ? &np->fwnode : NULL;
+	fwspec->fwnode = of_node_to_fwnode(np);
 	fwspec->param_count = count;
 
 	for (i = 0; i < count; i++)

  reply	other threads:[~2020-11-07 15:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-30 16:59 [PATCH v2 0/5] irqdomain: clean up, add irq_domain_create_legacy() Andy Shevchenko
2020-10-30 16:59 ` [PATCH v2 1/5] irqdomain: Remove unused of_device_id forward declaration Andy Shevchenko
2020-11-07 15:13   ` [tip: irq/core] " tip-bot2 for Andy Shevchenko
2020-10-30 16:59 ` [PATCH v2 2/5] irqdomain: Add forward declaration of fwnode_handle Andy Shevchenko
2020-11-07 15:13   ` [tip: irq/core] " tip-bot2 for Andy Shevchenko
2020-10-30 16:59 ` [PATCH v2 3/5] irqdomain: Replace open coded of_node_to_fwnode() Andy Shevchenko
2020-11-07 15:13   ` tip-bot2 for Andy Shevchenko [this message]
2020-10-30 16:59 ` [PATCH v2 4/5] irqdomain: Introduce irq_domain_create_legacy() API Andy Shevchenko
2020-11-07 15:13   ` [tip: irq/core] " tip-bot2 for Andy Shevchenko
2020-10-30 16:59 ` [PATCH v2 5/5] regmap: irq: Convert to use fwnode directly Andy Shevchenko
2020-11-07 15:13   ` [tip: irq/core] regmap: irq: Convert to use irq_domain_create_legacy() tip-bot2 for Andy Shevchenko
2020-11-02 19:23 ` [PATCH v2 0/5] irqdomain: clean up, add irq_domain_create_legacy() Rafael J. Wysocki

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=160476203458.11244.15363644462716481347.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=maz@kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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).