X-Git-Url: https://repo.jachan.dev/J-u-boot.git/blobdiff_plain/0f35d96bfd8565da2c5ba0f540827fff0e82eb32..fe76d868f72e483f71a59639c8aa8f658a313b5d:/cmd/button.c diff --git a/cmd/button.c b/cmd/button.c index 64c5a8fa046..3e6db3f5b8e 100644 --- a/cmd/button.c +++ b/cmd/button.c @@ -5,7 +5,6 @@ * Based on led.c */ -#include #include #include #include @@ -37,7 +36,7 @@ static int list_buttons(void) for (uclass_find_first_device(UCLASS_BUTTON, &dev); dev; uclass_find_next_device(&dev)) { - struct button_uc_plat *plat = dev_get_uclass_platdata(dev); + struct button_uc_plat *plat = dev_get_uclass_plat(dev); if (!plat->label) continue;