Skip to content

Commit 335fb3d

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
bus: moxtet: Use dev_fwnode()
irq_domain_create_simple() takes fwnode as the first argument. It can be extracted from the struct device using dev_fwnode() helper instead of using of_node with of_fwnode_handle(). So use the dev_fwnode() helper. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Reviewed-by: Marek Behún <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 61a789a commit 335fb3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/bus/moxtet.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,7 @@ static int moxtet_irq_setup(struct moxtet *moxtet)
737737
{
738738
int i, ret;
739739

740-
moxtet->irq.domain = irq_domain_create_simple(of_fwnode_handle(moxtet->dev->of_node),
741-
MOXTET_NIRQS, 0,
740+
moxtet->irq.domain = irq_domain_create_simple(dev_fwnode(moxtet->dev), MOXTET_NIRQS, 0,
742741
&moxtet_irq_domain, moxtet);
743742
if (moxtet->irq.domain == NULL) {
744743
dev_err(moxtet->dev, "Could not add IRQ domain\n");

0 commit comments

Comments
 (0)