aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-dvb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/videobuf-dvb.c')
-rw-r--r--drivers/media/video/videobuf-dvb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/video/videobuf-dvb.c b/drivers/media/video/videobuf-dvb.c
index 7c74845af267..36b1e67ac330 100644
--- a/drivers/media/video/videobuf-dvb.c
+++ b/drivers/media/video/videobuf-dvb.c
@@ -307,10 +307,8 @@ void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f)
307 dvb_dmx_release(&fe->dvb.demux); 307 dvb_dmx_release(&fe->dvb.demux);
308 dvb_unregister_frontend(fe->dvb.frontend); 308 dvb_unregister_frontend(fe->dvb.frontend);
309 } 309 }
310 if(fe->dvb.frontend) { /* always allocated, may have been reset */ 310 if(fe->dvb.frontend) /* always allocated, may have been reset */
311 dvb_frontend_detach(fe->dvb.frontend); 311 dvb_frontend_detach(fe->dvb.frontend);
312 fe->dvb.frontend = NULL;
313 }
314 list_del(list); 312 list_del(list);
315 kfree(fe); 313 kfree(fe);
316 } 314 }
@@ -360,7 +358,7 @@ int videobuf_dvb_find_frontend(struct videobuf_dvb_frontends *f, struct dvb_fron
360 return ret; 358 return ret;
361} 359}
362 360
363struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(void *private, struct videobuf_dvb_frontends *f, int id) 361struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(struct videobuf_dvb_frontends *f, int id)
364{ 362{
365 struct videobuf_dvb_frontend *fe; 363 struct videobuf_dvb_frontend *fe;
366 364
@@ -368,7 +366,6 @@ struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(void *private, struct
368 if (fe == NULL) 366 if (fe == NULL)
369 goto fail_alloc; 367 goto fail_alloc;
370 368
371 fe->dev = private;
372 fe->id = id; 369 fe->id = id;
373 mutex_init(&fe->dvb.lock); 370 mutex_init(&fe->dvb.lock);
374 371