diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-06-29 14:30:58 +0300 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2022-07-19 10:57:13 +0300 |
commit | 597a8a888d349c3804e92ef087646bd9a89fe53d (patch) | |
tree | 8bf890ad9d4dce0b46cc8fe618b638ea1d042bf6 /drivers/gpio/gpiolib-of.c | |
parent | 6169d76c56b30e57fcb080206edd5324d9cea296 (diff) | |
download | linux-597a8a888d349c3804e92ef087646bd9a89fe53d.tar.xz |
gpiolib: of: Use device_match_of_node() helper
Instead of open coding, use device_match_of_node() helper.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
-rw-r--r-- | drivers/gpio/gpiolib-of.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |