diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-01-14 01:07:03 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-01-26 15:40:55 +0300 |
commit | 9bd73ce087354628983bc4392ba6894d6b6c15a7 (patch) | |
tree | 17994035ac46992b8961d4b16c783047747c214e /drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | |
parent | b8f9301c91bff54570181db9dffa9b5716c3c75d (diff) | |
download | linux-9bd73ce087354628983bc4392ba6894d6b6c15a7.tar.xz |
pinctrl: qcom: Unify accessing to device fwnode
The device fwnode can be get via dev_fwnode() getter.
Use it where it makes sense.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230113220703.45686-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom/pinctrl-spmi-gpio.c')
-rw-r--r-- | drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 66d6d7ffbd43..ea3485344f06 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1146,7 +1146,7 @@ static int pmic_gpio_probe(struct platform_device *pdev) gpio_irq_chip_set_chip(girq, &spmi_gpio_irq_chip); girq->default_type = IRQ_TYPE_NONE; girq->handler = handle_level_irq; - girq->fwnode = of_node_to_fwnode(state->dev->of_node); + girq->fwnode = dev_fwnode(state->dev); girq->parent_domain = parent_domain; girq->child_to_parent_hwirq = pmic_gpio_child_to_parent_hwirq; girq->populate_parent_alloc_arg = pmic_gpio_populate_parent_fwspec; |