]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/bt8xx/bttv-gpio.c
Merge branch 'fixes' into for-linus
[linux-2.6-omap-h63xx.git] / drivers / media / video / bt8xx / bttv-gpio.c
index 84154c26f9c5fb3c4bed9d1a099073260e9ff0c8..dce6dae5740efa55586cd9bf88e24a675e0cd41e 100644 (file)
@@ -106,11 +106,9 @@ int bttv_sub_add_device(struct bttv_core *core, char *name)
 
 int bttv_sub_del_devices(struct bttv_core *core)
 {
-       struct bttv_sub_device *sub;
-       struct list_head *item,*save;
+       struct bttv_sub_device *sub, *save;
 
-       list_for_each_safe(item,save,&core->subs) {
-               sub = list_entry(item,struct bttv_sub_device,list);
+       list_for_each_entry_safe(sub, save, &core->subs, list) {
                list_del(&sub->list);
                device_unregister(&sub->dev);
        }