summaryrefslogtreecommitdiffstats
path: root/drivers/led/led_bcm6358.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/led/led_bcm6358.c')
-rw-r--r--drivers/led/led_bcm6358.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/led/led_bcm6358.c b/drivers/led/led_bcm6358.c
index 307d418a17..3e57cdfd17 100644
--- a/drivers/led/led_bcm6358.c
+++ b/drivers/led/led_bcm6358.c
@@ -113,7 +113,7 @@ static const struct led_ops bcm6358_led_ops = {
static int bcm6358_led_probe(struct udevice *dev)
{
- struct led_uc_plat *uc_plat = dev_get_uclass_platdata(dev);
+ struct led_uc_plat *uc_plat = dev_get_uclass_plat(dev);
/* Top-level LED node */
if (!uc_plat->label) {
@@ -192,7 +192,7 @@ static int bcm6358_led_bind(struct udevice *parent)
if (ret)
return ret;
- uc_plat = dev_get_uclass_platdata(dev);
+ uc_plat = dev_get_uclass_plat(dev);
uc_plat->label = label;
}
@@ -210,6 +210,6 @@ U_BOOT_DRIVER(bcm6358_led) = {
.of_match = bcm6358_led_ids,
.bind = bcm6358_led_bind,
.probe = bcm6358_led_probe,
- .priv_auto_alloc_size = sizeof(struct bcm6358_led_priv),
+ .priv_auto = sizeof(struct bcm6358_led_priv),
.ops = &bcm6358_led_ops,
};