diff options
Diffstat (limited to 'drivers/media/video/wm8739.c')
-rw-r--r-- | drivers/media/video/wm8739.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/wm8739.c b/drivers/media/video/wm8739.c index 459228a5cf50..3d9e709833c5 100644 --- a/drivers/media/video/wm8739.c +++ b/drivers/media/video/wm8739.c | |||
@@ -264,6 +264,10 @@ static int wm8739_probe(struct i2c_client *client) | |||
264 | { | 264 | { |
265 | struct wm8739_state *state; | 265 | struct wm8739_state *state; |
266 | 266 | ||
267 | /* Check if the adapter supports the needed features */ | ||
268 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) | ||
269 | return -EIO; | ||
270 | |||
267 | v4l_info(client, "chip found @ 0x%x (%s)\n", client->addr << 1, client->adapter->name); | 271 | v4l_info(client, "chip found @ 0x%x (%s)\n", client->addr << 1, client->adapter->name); |
268 | 272 | ||
269 | state = kmalloc(sizeof(struct wm8739_state), GFP_KERNEL); | 273 | state = kmalloc(sizeof(struct wm8739_state), GFP_KERNEL); |