aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-09-29 04:51:03 -0400
committerWolfram Sang <wsa@the-dreams.de>2013-10-03 16:28:28 -0400
commit395c994264bba13b5de73d0a8da6842df8ac47bf (patch)
tree36a072a0c7869b9d8890c33b32cd3947a0bf3e66 /drivers
parent3ee81b7aefcc4d5c031dcac5df8683cadc7b6ee2 (diff)
drm: nouveau: Don't use i2c_client->driver
The 'driver' field of the i2c_client struct is redundant and is going to be removed. Use 'to_i2c_driver(client->dev.driver)' instead to get direct access to the i2c_driver struct. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Cc: Martin Peres <martin.peres@labri.fr> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/therm/ic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/ic.c b/drivers/gpu/drm/nouveau/core/subdev/therm/ic.c
index 8b3adec5fbb1..eae939d3fc1a 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/therm/ic.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/therm/ic.c
@@ -41,7 +41,8 @@ probe_monitoring_device(struct nouveau_i2c_port *i2c,
41 if (!client) 41 if (!client)
42 return false; 42 return false;
43 43
44 if (!client->driver || client->driver->detect(client, info)) { 44 if (!client->dev.driver ||
45 to_i2c_driver(client->dev.driver)->detect(client, info)) {
45 i2c_unregister_device(client); 46 i2c_unregister_device(client);
46 return false; 47 return false;
47 } 48 }