forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c
....@@ -36,8 +36,8 @@
3636
3737 request_module("%s%s", I2C_MODULE_PREFIX, info->type);
3838
39
- client = i2c_new_device(&bus->i2c, info);
40
- if (!client)
39
+ client = i2c_new_client_device(&bus->i2c, info);
40
+ if (IS_ERR(client))
4141 return false;
4242
4343 if (!client->dev.driver ||
....@@ -116,6 +116,9 @@
116116 return;
117117 }
118118
119
+ if (nvbios_extdev_skip_probe(bios))
120
+ return;
121
+
119122 /* The vbios doesn't provide the address of an exisiting monitoring
120123 device. Let's try our static list.
121124 */