diff options
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-gpio.c')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-gpio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/bt8xx/bttv-gpio.c b/drivers/media/video/bt8xx/bttv-gpio.c index 84154c26f9c5..dce6dae5740e 100644 --- a/drivers/media/video/bt8xx/bttv-gpio.c +++ b/drivers/media/video/bt8xx/bttv-gpio.c | |||
@@ -106,11 +106,9 @@ int bttv_sub_add_device(struct bttv_core *core, char *name) | |||
106 | 106 | ||
107 | int bttv_sub_del_devices(struct bttv_core *core) | 107 | int bttv_sub_del_devices(struct bttv_core *core) |
108 | { | 108 | { |
109 | struct bttv_sub_device *sub; | 109 | struct bttv_sub_device *sub, *save; |
110 | struct list_head *item,*save; | ||
111 | 110 | ||
112 | list_for_each_safe(item,save,&core->subs) { | 111 | list_for_each_entry_safe(sub, save, &core->subs, list) { |
113 | sub = list_entry(item,struct bttv_sub_device,list); | ||
114 | list_del(&sub->list); | 112 | list_del(&sub->list); |
115 | device_unregister(&sub->dev); | 113 | device_unregister(&sub->dev); |
116 | } | 114 | } |