diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-10-13 10:33:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-10-13 23:44:28 -0400 |
commit | 6a74216c4590e4d322a45e1085f3553b1fb07f06 (patch) | |
tree | 61864386d594b3c724eab70e58dca6c9cdb5e00c /drivers | |
parent | 5011915cbb139a331c083e65a61c82e9174f9813 (diff) |
V4L/DVB (4748): Fixed oops for Nova-T USB2
When using the remote control with the Nova-T USB there was an Oops because of
the recent DVB-USB-Adapter change.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dibusb.h | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/nova-t-usb2.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/dibusb.h b/drivers/media/dvb/dvb-usb/dibusb.h index 5153fb943da1..b60781032742 100644 --- a/drivers/media/dvb/dvb-usb/dibusb.h +++ b/drivers/media/dvb/dvb-usb/dibusb.h | |||
@@ -99,7 +99,9 @@ | |||
99 | struct dibusb_state { | 99 | struct dibusb_state { |
100 | struct dib_fe_xfer_ops ops; | 100 | struct dib_fe_xfer_ops ops; |
101 | int mt2060_present; | 101 | int mt2060_present; |
102 | }; | ||
102 | 103 | ||
104 | struct dibusb_device_state { | ||
103 | /* for RC5 remote control */ | 105 | /* for RC5 remote control */ |
104 | int old_toggle; | 106 | int old_toggle; |
105 | int last_repeat_count; | 107 | int last_repeat_count; |
diff --git a/drivers/media/dvb/dvb-usb/nova-t-usb2.c b/drivers/media/dvb/dvb-usb/nova-t-usb2.c index a9219bf69b89..a58874c790b2 100644 --- a/drivers/media/dvb/dvb-usb/nova-t-usb2.c +++ b/drivers/media/dvb/dvb-usb/nova-t-usb2.c | |||
@@ -75,7 +75,7 @@ static int nova_t_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | |||
75 | u8 key[5],cmd[2] = { DIBUSB_REQ_POLL_REMOTE, 0x35 }, data,toggle,custom; | 75 | u8 key[5],cmd[2] = { DIBUSB_REQ_POLL_REMOTE, 0x35 }, data,toggle,custom; |
76 | u16 raw; | 76 | u16 raw; |
77 | int i; | 77 | int i; |
78 | struct dibusb_state *st = d->priv; | 78 | struct dibusb_device_state *st = d->priv; |
79 | 79 | ||
80 | dvb_usb_generic_rw(d,cmd,2,key,5,0); | 80 | dvb_usb_generic_rw(d,cmd,2,key,5,0); |
81 | 81 | ||
@@ -184,6 +184,7 @@ static struct dvb_usb_device_properties nova_t_properties = { | |||
184 | .size_of_priv = sizeof(struct dibusb_state), | 184 | .size_of_priv = sizeof(struct dibusb_state), |
185 | } | 185 | } |
186 | }, | 186 | }, |
187 | .size_of_priv = sizeof(struct dibusb_device_state), | ||
187 | 188 | ||
188 | .power_ctrl = dibusb2_0_power_ctrl, | 189 | .power_ctrl = dibusb2_0_power_ctrl, |
189 | .read_mac_address = nova_t_read_mac_address, | 190 | .read_mac_address = nova_t_read_mac_address, |