]> git.sur5r.net Git - u-boot/blobdiff - drivers/gpio/bcm2835_gpio.c
dm: gpio: request list: return the count if requests max_count reached
[u-boot] / drivers / gpio / bcm2835_gpio.c
index 0244c01882863903596f76f153a11cbbaf98dc3e..fbc641d662e4e481c99ab667107d623a71f78317 100644 (file)
@@ -105,7 +105,7 @@ static int bcm2835_gpio_probe(struct udevice *dev)
 {
        struct bcm2835_gpios *gpios = dev_get_priv(dev);
        struct bcm2835_gpio_platdata *plat = dev_get_platdata(dev);
-       struct gpio_dev_priv *uc_priv = dev->uclass_priv;
+       struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
 
        uc_priv->bank_name = "GPIO";
        uc_priv->gpio_count = BCM2835_GPIO_COUNT;