diff options
Diffstat (limited to 'drivers/media/video/hdpvr/hdpvr-core.c')
-rw-r--r-- | drivers/media/video/hdpvr/hdpvr-core.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/video/hdpvr/hdpvr-core.c b/drivers/media/video/hdpvr/hdpvr-core.c index f7d1ee55185..a6572e5ae36 100644 --- a/drivers/media/video/hdpvr/hdpvr-core.c +++ b/drivers/media/video/hdpvr/hdpvr-core.c | |||
@@ -378,19 +378,17 @@ static int hdpvr_probe(struct usb_interface *interface, | |||
378 | goto error; | 378 | goto error; |
379 | } | 379 | } |
380 | 380 | ||
381 | #ifdef CONFIG_I2C | 381 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) |
382 | /* until i2c is working properly */ | 382 | retval = hdpvr_register_i2c_adapter(dev); |
383 | retval = 0; /* hdpvr_register_i2c_adapter(dev); */ | ||
384 | if (retval < 0) { | 383 | if (retval < 0) { |
385 | v4l2_err(&dev->v4l2_dev, "registering i2c adapter failed\n"); | 384 | v4l2_err(&dev->v4l2_dev, "registering i2c adapter failed\n"); |
386 | goto error; | 385 | goto error; |
387 | } | 386 | } |
388 | 387 | ||
389 | /* until i2c is working properly */ | 388 | retval = hdpvr_register_i2c_ir(dev); |
390 | retval = 0; /* hdpvr_register_i2c_ir(dev); */ | ||
391 | if (retval < 0) | 389 | if (retval < 0) |
392 | v4l2_err(&dev->v4l2_dev, "registering i2c IR devices failed\n"); | 390 | v4l2_err(&dev->v4l2_dev, "registering i2c IR devices failed\n"); |
393 | #endif /* CONFIG_I2C */ | 391 | #endif |
394 | 392 | ||
395 | /* let the user know what node this device is now attached to */ | 393 | /* let the user know what node this device is now attached to */ |
396 | v4l2_info(&dev->v4l2_dev, "device now attached to %s\n", | 394 | v4l2_info(&dev->v4l2_dev, "device now attached to %s\n", |