dm: gpio: Allow the uclass to work without printf()
[oweals/u-boot.git] / drivers / gpio / at91_gpio.c
index 22fbd630987f96d9cd214e8833522c762f9eb16c..75a32ee8156f105f0454e24aec5ffe987e292935 100644 (file)
@@ -511,7 +511,7 @@ static int at91_gpio_probe(struct udevice *dev)
 {
        struct at91_port_priv *port = dev_get_priv(dev);
        struct at91_port_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 = plat->bank_name;
        uc_priv->gpio_count = GPIO_PER_BANK;