diff options
author | Rob Herring <robh@kernel.org> | 2023-10-09 19:29:13 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-10-30 14:50:42 +0100 |
commit | 63bffc2d3a99eaabc786c513eea71be3f597f175 (patch) | |
tree | c3c61b3830c55f7769c8d51733728b0d25aea8b5 /drivers/pinctrl/mvebu/pinctrl-armada-ap806.c | |
parent | dt-bindings: pinctrl: qcom,sa8775p-tlmm: add missing wakeup-parent (diff) | |
download | linux-63bffc2d3a99eaabc786c513eea71be3f597f175.tar.xz linux-63bffc2d3a99eaabc786c513eea71be3f597f175.zip |
pinctrl: Use device_get_match_data()
Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data. With this, adjust the includes to explicitly
include the correct headers.
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20231009172923.2457844-18-robh@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mvebu/pinctrl-armada-ap806.c')
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-armada-ap806.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-ap806.c b/drivers/pinctrl/mvebu/pinctrl-armada-ap806.c index 89bab536717d..7becf2781a0b 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-ap806.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-ap806.c @@ -13,7 +13,6 @@ #include <linux/io.h> #include <linux/platform_device.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h> #include "pinctrl-mvebu.h" @@ -106,10 +105,8 @@ static struct pinctrl_gpio_range armada_ap806_mpp_gpio_ranges[] = { static int armada_ap806_pinctrl_probe(struct platform_device *pdev) { struct mvebu_pinctrl_soc_info *soc = &armada_ap806_pinctrl_info; - const struct of_device_id *match = - of_match_device(armada_ap806_pinctrl_of_match, &pdev->dev); - if (!match || !pdev->dev.parent) + if (!pdev->dev.parent) return -ENODEV; soc->variant = 0; /* no variants for Armada AP806 */ |