aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-09-29 04:51:04 -0400
committerWolfram Sang <wsa@the-dreams.de>2013-10-03 16:28:29 -0400
commita7cde6d25c494e1bc8c4f89d3096b2fe077c5416 (patch)
tree88f078e569dbb29195fbb90a65b8a5a93ac54e58 /sound
parent395c994264bba13b5de73d0a8da6842df8ac47bf (diff)
ALSA: ppc: keywest: 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> Acked-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/ppc/keywest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c
index 01aecc2b5073..0d1c27e911b8 100644
--- a/sound/ppc/keywest.c
+++ b/sound/ppc/keywest.c
@@ -65,7 +65,7 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
65 * already bound. If not it means binding failed, and then there 65 * already bound. If not it means binding failed, and then there
66 * is no point in keeping the device instantiated. 66 * is no point in keeping the device instantiated.
67 */ 67 */
68 if (!keywest_ctx->client->driver) { 68 if (!keywest_ctx->client->dev.driver) {
69 i2c_unregister_device(keywest_ctx->client); 69 i2c_unregister_device(keywest_ctx->client);
70 keywest_ctx->client = NULL; 70 keywest_ctx->client = NULL;
71 return -ENODEV; 71 return -ENODEV;
@@ -76,7 +76,7 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
76 * This is safe because i2c-core holds the core_lock mutex for us. 76 * This is safe because i2c-core holds the core_lock mutex for us.
77 */ 77 */
78 list_add_tail(&keywest_ctx->client->detected, 78 list_add_tail(&keywest_ctx->client->detected,
79 &keywest_ctx->client->driver->clients); 79 &to_i2c_driver(keywest_ctx->client->dev.driver)->clients);
80 return 0; 80 return 0;
81} 81}
82 82