summaryrefslogtreecommitdiffstats
path: root/drivers/w1-eeprom/ds2502.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/w1-eeprom/ds2502.c')
-rw-r--r--drivers/w1-eeprom/ds2502.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1-eeprom/ds2502.c b/drivers/w1-eeprom/ds2502.c
index 19ee4b17ea..b3d68d7f05 100644
--- a/drivers/w1-eeprom/ds2502.c
+++ b/drivers/w1-eeprom/ds2502.c
@@ -222,7 +222,7 @@ static int ds2502_probe(struct udevice *dev)
{
struct w1_device *w1;
- w1 = dev_get_parent_platdata(dev);
+ w1 = dev_get_parent_plat(dev);
w1->id = 0;
return 0;
}