board: ge: common: vpd: fix name
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 4 Nov 2020 16:18:38 +0000 (17:18 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 6 Dec 2020 14:31:36 +0000 (15:31 +0100)
Commit f692b479f02d changed the VPD partition name from "vpd" to
"vpd@0". Fix the VPD reader code to use the new name, so that
the VPD code keeps working.

Fixes: f692b479f02d ("i2c: eeprom: Use reg property instead of offset and size")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
board/ge/common/vpd_reader.c

index 421fee5..c28d2c0 100644 (file)
@@ -209,7 +209,7 @@ int read_i2c_vpd(struct vpd_cache *cache,
        u8 *data;
        int size;
 
-       ret = uclass_get_device_by_name(UCLASS_I2C_EEPROM, "vpd", &dev);
+       ret = uclass_get_device_by_name(UCLASS_I2C_EEPROM, "vpd@0", &dev);
        if (ret)
                return ret;