summaryrefslogtreecommitdiff
path: root/drivers/w1-eeprom/ds24xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/w1-eeprom/ds24xxx.c')
-rw-r--r--drivers/w1-eeprom/ds24xxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1-eeprom/ds24xxx.c b/drivers/w1-eeprom/ds24xxx.c
index 0967accdf0..d12fd5754e 100644
--- a/drivers/w1-eeprom/ds24xxx.c
+++ b/drivers/w1-eeprom/ds24xxx.c
@@ -31,7 +31,7 @@ static int ds24xxx_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;
}