Commit 3f9becf9 authored by Wolfram Sang's avatar Wolfram Sang Committed by Sam Ravnborg
Browse files

drm/nouveau/therm: convert to use i2c_new_client_device()



Move away from the deprecated API and return the shiny new ERRPTR where
useful.

Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200326211005.13301-6-wsa+renesas@sang-engineering.com
parent bf2993c1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -36,8 +36,8 @@ probe_monitoring_device(struct nvkm_i2c_bus *bus,

	request_module("%s%s", I2C_MODULE_PREFIX, info->type);

	client = i2c_new_device(&bus->i2c, info);
	if (!client)
	client = i2c_new_client_device(&bus->i2c, info);
	if (IS_ERR(client))
		return false;

	if (!client->dev.driver ||