board: stm32mp1: fixup the usb product id for USB download gadget
[oweals/u-boot.git] / drivers / w1-eeprom / ds24xxx.c
index 56186e587cf50bf62b39ac3147d8732dc30ca752..0967accdf0095c3883eda1aa1f2bf3d0f82402f2 100644 (file)
@@ -31,7 +31,7 @@ static int ds24xxx_probe(struct udevice *dev)
 {
        struct w1_device *w1;
 
-       w1 = dev_get_platdata(dev);
+       w1 = dev_get_parent_platdata(dev);
        w1->id = 0;
        return 0;
 }