Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200326211005.13301-6-wsa+renesas@sang-engineering.com

authored by

Wolfram Sang and committed by
Sam Ravnborg
3f9becf9 bf2993c1

+2 -2
+2 -2
drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c
··· 36 36 37 37 request_module("%s%s", I2C_MODULE_PREFIX, info->type); 38 38 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)) 41 41 return false; 42 42 43 43 if (!client->dev.driver ||