Skip to content

Commit

Permalink
V4L/DVB (5232): Gl861: correct oops when loading module
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Jan Nijs authored and Mauro Carvalho Chehab committed Feb 21, 2007
1 parent 1f78867 commit b3b2b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/gl861.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ 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,

.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,
Expand Down

0 comments on commit b3b2b8b

Please sign in to comment.