aboutsummaryrefslogtreecommitdiff
path: root/drivers/led/led_bcm6328.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/led/led_bcm6328.c')
-rw-r--r--drivers/led/led_bcm6328.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/led/led_bcm6328.c b/drivers/led/led_bcm6328.c
index 52946835de..bf8207d638 100644
--- a/drivers/led/led_bcm6328.c
+++ b/drivers/led/led_bcm6328.c
@@ -147,7 +147,7 @@ static const struct led_ops bcm6328_led_ops = {
static int bcm6328_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) {
@@ -222,7 +222,7 @@ static int bcm6328_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;
}
@@ -241,5 +241,5 @@ U_BOOT_DRIVER(bcm6328_led) = {
.ops = &bcm6328_led_ops,
.bind = bcm6328_led_bind,
.probe = bcm6328_led_probe,
- .priv_auto_alloc_size = sizeof(struct bcm6328_led_priv),
+ .priv_auto = sizeof(struct bcm6328_led_priv),
};