]> git.sur5r.net Git - u-boot/blobdiff - drivers/gpio/lpc32xx_gpio.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / gpio / lpc32xx_gpio.c
index 9674ee75f03185eca01bc5d942ba7acd6a011f01..1bf945acfc634de960b3f5746f11c805dfaaf25e 100644 (file)
@@ -297,7 +297,7 @@ static int lpc32xx_gpio_probe(struct udevice *dev)
        struct lpc32xx_gpio_priv *gpio_priv = dev_get_priv(dev);
        struct gpio_dev_priv *uc_priv = dev->uclass_priv;
 
-       if (dev->of_offset == -1) {
+       if (dev_of_offset(dev) == -1) {
                /* Tell the uclass how many GPIOs we have */
                uc_priv->gpio_count = LPC32XX_GPIOS;
        }