Dockerfile: build swtpm
[J-u-boot.git] / drivers / button / button-gpio.c
index 985ae7f5a7680a1bfab8118b3d5586b9522d9160..dbb000622c7812a7be2262c4a1e772990be7af92 100644 (file)
@@ -31,7 +31,7 @@ static enum button_state_t button_gpio_get_state(struct udevice *dev)
 
 static int button_gpio_probe(struct udevice *dev)
 {
-       struct button_uc_plat *uc_plat = dev_get_uclass_platdata(dev);
+       struct button_uc_plat *uc_plat = dev_get_uclass_plat(dev);
        struct button_gpio_priv *priv = dev_get_priv(dev);
        int ret;
 
@@ -83,7 +83,7 @@ static int button_gpio_bind(struct udevice *parent)
                                                 node, &dev);
                if (ret)
                        return ret;
-               uc_plat = dev_get_uclass_platdata(dev);
+               uc_plat = dev_get_uclass_plat(dev);
                uc_plat->label = label;
        }
 
@@ -105,7 +105,7 @@ U_BOOT_DRIVER(button_gpio) = {
        .id             = UCLASS_BUTTON,
        .of_match       = button_gpio_ids,
        .ops            = &button_gpio_ops,
-       .priv_auto_alloc_size = sizeof(struct button_gpio_priv),
+       .priv_auto      = sizeof(struct button_gpio_priv),
        .bind           = button_gpio_bind,
        .probe          = button_gpio_probe,
        .remove         = button_gpio_remove,
This page took 0.022136 seconds and 4 git commands to generate.