Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192633
b: refs/heads/master
c: 22927e8
h: refs/heads/master
i:
  192631: d6b5a2b
v: v3
  • Loading branch information
Michel Ludwig authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 8e9fdf3 commit a280c5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 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: 9701dc94a14e54a33c3c99744ec3a761f6385fc6
refs/heads/master: 22927e8e0007fe653dd2824cf86b799b43e3bff8
4 changes: 2 additions & 2 deletions trunk/drivers/staging/tm6000/tm6000-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ static int tm6000_usb_probe(struct usb_interface *interface,
/* Increment usage count */
tm6000_devused|=1<<nr;

INIT_LIST_HEAD(&dev->tm6000_corelist);
dev->udev= usbdev;
dev->model=id->driver_info;
snprintf(dev->name, 29, "tm6000 #%d", nr);
Expand Down Expand Up @@ -354,8 +355,6 @@ static void tm6000_usb_disconnect(struct usb_interface *interface)
if (!dev)
return;

tm6000_i2c_unregister(dev);

printk("tm6000: disconnecting %s\n", dev->name);

mutex_lock(&dev->lock);
Expand All @@ -369,6 +368,7 @@ static void tm6000_usb_disconnect(struct usb_interface *interface)
dev->state |= DEV_DISCONNECTED;

mutex_unlock(&dev->lock);
kfree(dev);
}

static struct usb_driver tm6000_usb_driver = {
Expand Down
11 changes: 5 additions & 6 deletions trunk/drivers/staging/tm6000/tm6000-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1528,15 +1528,14 @@ int tm6000_v4l2_register(struct tm6000_core *dev)
int tm6000_v4l2_unregister(struct tm6000_core *dev)
{
struct tm6000_core *h;
struct list_head *list;
struct list_head *pos, *tmp;

while (!list_empty(&tm6000_corelist)) {
list = tm6000_corelist.next;
h = list_entry(list, struct tm6000_core, tm6000_corelist);
video_unregister_device(&dev->vfd);

list_for_each_safe(pos, tmp, &tm6000_corelist) {
h = list_entry(pos, struct tm6000_core, tm6000_corelist);
if (h == dev) {
video_unregister_device(&dev->vfd);
list_del(list);
kfree (h);
}
}

Expand Down

0 comments on commit a280c5a

Please sign in to comment.