Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285311
b: refs/heads/master
c: 68dd9dd
h: refs/heads/master
i:
  285309: 6a1c6c1
  285307: 15d6be8
  285303: d9a6d13
  285295: c331f8d
  285279: fcb9281
  285247: ddeca82
  285183: 72c9568
v: v3
  • Loading branch information
Thomas Meyer authored and Mauro Carvalho Chehab committed Nov 24, 2011
1 parent 2ee5868 commit 938aa4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 53090aada474fe10052602ca3f46701591b666a5
refs/heads/master: 68dd9dd4113a7d2bd329590091a3f97fee3fd659
15 changes: 6 additions & 9 deletions trunk/drivers/media/dvb/dvb-usb/dw2102.c
Original file line number Diff line number Diff line change
Expand Up @@ -1859,41 +1859,38 @@ static struct dvb_usb_device_properties su3000_properties = {
static int dw2102_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
p1100 = kzalloc(sizeof(struct dvb_usb_device_properties), GFP_KERNEL);
p1100 = kmemdup(&s6x0_properties,
sizeof(struct dvb_usb_device_properties), GFP_KERNEL);
if (!p1100)
return -ENOMEM;
/* copy default structure */
memcpy(p1100, &s6x0_properties,
sizeof(struct dvb_usb_device_properties));
/* fill only different fields */
p1100->firmware = "dvb-usb-p1100.fw";
p1100->devices[0] = d1100;
p1100->rc.legacy.rc_map_table = rc_map_tbs_table;
p1100->rc.legacy.rc_map_size = ARRAY_SIZE(rc_map_tbs_table);
p1100->adapter->fe[0].frontend_attach = stv0288_frontend_attach;

s660 = kzalloc(sizeof(struct dvb_usb_device_properties), GFP_KERNEL);
s660 = kmemdup(&s6x0_properties,
sizeof(struct dvb_usb_device_properties), GFP_KERNEL);
if (!s660) {
kfree(p1100);
return -ENOMEM;
}
memcpy(s660, &s6x0_properties,
sizeof(struct dvb_usb_device_properties));
s660->firmware = "dvb-usb-s660.fw";
s660->num_device_descs = 3;
s660->devices[0] = d660;
s660->devices[1] = d480_1;
s660->devices[2] = d480_2;
s660->adapter->fe[0].frontend_attach = ds3000_frontend_attach;

p7500 = kzalloc(sizeof(struct dvb_usb_device_properties), GFP_KERNEL);
p7500 = kmemdup(&s6x0_properties,
sizeof(struct dvb_usb_device_properties), GFP_KERNEL);
if (!p7500) {
kfree(p1100);
kfree(s660);
return -ENOMEM;
}
memcpy(p7500, &s6x0_properties,
sizeof(struct dvb_usb_device_properties));
p7500->firmware = "dvb-usb-p7500.fw";
p7500->devices[0] = d7500;
p7500->rc.legacy.rc_map_table = rc_map_tbs_table;
Expand Down

0 comments on commit 938aa4a

Please sign in to comment.