@@ -1358,17 +1358,13 @@ static int ucsi_ccg_probe(struct i2c_client *client)
INIT_WORK(&uc->pm_work, ccg_pm_workaround_work);
/* Only fail FW flashing when FW build information is not provided */
- status = device_property_read_u16(dev, "ccgx,firmware-build",
- &uc->fw_build);
- if (status) {
- status = device_property_read_string(dev, "firmware-name",
- &fw_name);
- if (!status) {
- if (!strcmp(fw_name, "nvidia,jetson-agx-xavier"))
- uc->fw_build = CCG_FW_BUILD_NVIDIA_TEGRA;
- else if (!strcmp(fw_name, "nvidia,gpu"))
- uc->fw_build = CCG_FW_BUILD_NVIDIA;
- }
+ status = device_property_read_string(dev, "firmware-name",
+ &fw_name);
+ if (!status) {
+ if (!strcmp(fw_name, "nvidia,jetson-agx-xavier"))
+ uc->fw_build = CCG_FW_BUILD_NVIDIA_TEGRA;
+ else if (!strcmp(fw_name, "nvidia,gpu"))
+ uc->fw_build = CCG_FW_BUILD_NVIDIA;
}
if (!uc->fw_build)