From: Andy Shevchenko Date: Wed, 29 Jun 2022 11:30:58 +0000 (+0300) Subject: gpiolib: of: Use device_match_of_node() helper X-Git-Tag: v6.1-rc5~709^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=597a8a888d349c3804e92ef087646bd9a89fe53d;p=platform%2Fkernel%2Flinux-starfive.git gpiolib: of: Use device_match_of_node() helper Instead of open coding, use device_match_of_node() helper. Signed-off-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 3d6c3ffd5576..23b8de98bf7c 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -720,7 +720,7 @@ static void of_gpiochip_remove_hog(struct gpio_chip *chip, static int of_gpiochip_match_node(struct gpio_chip *chip, void *data) { - return chip->gpiodev->dev.of_node == data; + return device_match_of_node(&chip->gpiodev->dev, data); } static struct gpio_chip *of_find_gpiochip_by_node(struct device_node *np)