summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-10-07 00:25:53 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2006-10-07 00:25:53 -0400
commita02c6e1964c4396a8595b8892d035cf56852d7f5 (patch)
tree4fb397cb802b251ae3bd1a523e8ed94462a40bf3
parent4a8e6969b11f8e93a0edaa438aa8611a77254cf3 (diff)
downloadmediapointer-dvb-s2-a02c6e1964c4396a8595b8892d035cf56852d7f5.tar.gz
mediapointer-dvb-s2-a02c6e1964c4396a8595b8892d035cf56852d7f5.tar.bz2
gl861: correct oops when loading module
From: Jan Nijs <jan.nijs@scarlet.be> This patch moves the DVB_USB_IS_AN_I2C_ADAPTER flag from the adapter properties to the device properties. Without this patch I get an OOPS when the gl861 driver tries to access any registers. Signed-off-by: Jan Nijs <jan.nijs@scarlet.be> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r--linux/drivers/media/dvb/dvb-usb/gl861.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/gl861.c b/linux/drivers/media/dvb/dvb-usb/gl861.c
index dc90903f3..daa6e3001 100644
--- a/linux/drivers/media/dvb/dvb-usb/gl861.c
+++ b/linux/drivers/media/dvb/dvb-usb/gl861.c
@@ -153,6 +153,7 @@ static struct usb_device_id gl861_table [] = {
MODULE_DEVICE_TABLE (usb, gl861_table);
static struct dvb_usb_device_properties gl861_properties = {
+ .caps = DVB_USB_IS_AN_I2C_ADAPTER,
.usb_ctrl = DEVICE_SPECIFIC,
.size_of_priv = 0,
@@ -160,7 +161,6 @@ static struct dvb_usb_device_properties gl861_properties = {
.identify_state = gl861_identify_state,
.num_adapters = 1,
.adapter = {{
- .caps = DVB_USB_IS_AN_I2C_ADAPTER,
.frontend_attach = gl861_frontend_attach,
.tuner_attach = qt1010_tuner_attach,