diff options
author | Mike Isely <isely@pobox.com> | 2009-03-06 21:51:35 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:33 -0400 |
commit | 15b474423f0642e6ff78f1963b816155e80fc932 (patch) | |
tree | 81ceffbd2eaae4d5f544d97a77f185852a35cbf3 | |
parent | 6063a4422cd80eef9cfdd2a57620a2fc73858b1c (diff) |
V4L/DVB (11161): pvrusb2: Set i2c autoprobing to be off by default
In order to keep a sub-device from promiscuously attaching to the
pvrusb2 driver, the i2c adapter's class must be cleared. This change
clears that class by default.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c index 1129fe40c04c..13d016efc0d1 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c +++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | |||
@@ -540,7 +540,7 @@ static struct i2c_algorithm pvr2_i2c_algo_template = { | |||
540 | 540 | ||
541 | static struct i2c_adapter pvr2_i2c_adap_template = { | 541 | static struct i2c_adapter pvr2_i2c_adap_template = { |
542 | .owner = THIS_MODULE, | 542 | .owner = THIS_MODULE, |
543 | .class = I2C_CLASS_TV_ANALOG, | 543 | .class = 0, |
544 | .id = I2C_HW_B_BT848, | 544 | .id = I2C_HW_B_BT848, |
545 | .client_register = pvr2_i2c_attach_inform, | 545 | .client_register = pvr2_i2c_attach_inform, |
546 | .client_unregister = pvr2_i2c_detach_inform, | 546 | .client_unregister = pvr2_i2c_detach_inform, |
@@ -607,6 +607,7 @@ void pvr2_i2c_core_init(struct pvr2_hdw *hdw) | |||
607 | hdw->i2c_adap.dev.parent = &hdw->usb_dev->dev; | 607 | hdw->i2c_adap.dev.parent = &hdw->usb_dev->dev; |
608 | hdw->i2c_adap.algo = &hdw->i2c_algo; | 608 | hdw->i2c_adap.algo = &hdw->i2c_algo; |
609 | hdw->i2c_adap.algo_data = hdw; | 609 | hdw->i2c_adap.algo_data = hdw; |
610 | hdw->i2c_adap.class = I2C_CLASS_TV_ANALOG; | ||
610 | hdw->i2c_linked = !0; | 611 | hdw->i2c_linked = !0; |
611 | i2c_set_adapdata(&hdw->i2c_adap, &hdw->v4l2_dev); | 612 | i2c_set_adapdata(&hdw->i2c_adap, &hdw->v4l2_dev); |
612 | i2c_add_adapter(&hdw->i2c_adap); | 613 | i2c_add_adapter(&hdw->i2c_adap); |