[media] tlg2300: add missing video_unregister_device
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 16 Jul 2012 11:17:34 +0000 (08:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 12:35:27 +0000 (09:35 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/tlg2300/pd-radio.c

index 80307d3857f52bb04b06f840de46cf3f4855cd43..0f958f74dbc46f45763a215046cff1f637d0baed 100644 (file)
@@ -334,6 +334,7 @@ int poseidon_fm_init(struct poseidon *p)
 
 int poseidon_fm_exit(struct poseidon *p)
 {
+       video_unregister_device(&p->radio_data.fm_dev);
        v4l2_ctrl_handler_free(&p->radio_data.ctrl_handler);
        return 0;
 }