Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115665
b: refs/heads/master
c: 96b7a1a
h: refs/heads/master
i:
  115663: b064802
v: v3
  • Loading branch information
Darron Broad authored and Mauro Carvalho Chehab committed Oct 17, 2008
1 parent 8e2cb4e commit 43d19e6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 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: 745632147d54cd4db6812045351510ebd3981a24
refs/heads/master: 96b7a1a838fb5b8746fc22f4ff3cef358bf59f35
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/cx23885/cx23885-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ int cx23885_dvb_register(struct cx23885_tsport *port)
port->num_frontends);

for (i = 1; i <= port->num_frontends; i++) {
if (videobuf_dvb_alloc_frontend(dev,
if (videobuf_dvb_alloc_frontend(
&port->frontends, i) == NULL) {
printk(KERN_ERR "%s() failed to alloc\n", __func__);
return -ENOMEM;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/cx88/cx88-mpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ static int __devinit cx8802_probe(struct pci_dev *pci_dev,
printk(KERN_INFO "%s() allocating %d frontend(s)\n", __func__, core->board.num_frontends);

for (i = 1; i <= core->board.num_frontends; i++) {
demod = videobuf_dvb_alloc_frontend(dev, &dev->frontends, i);
demod = videobuf_dvb_alloc_frontend(&dev->frontends, i);
if(demod == NULL) {
printk(KERN_ERR "%s() failed to alloc\n", __func__);
err = -ENOMEM;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/saa7134/saa7134-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ static int dvb_init(struct saa7134_dev *dev)

printk(KERN_INFO "%s() allocating 1 frontend\n", __func__);

if (videobuf_dvb_alloc_frontend(dev, &dev->frontends, 1) == NULL) {
if (videobuf_dvb_alloc_frontend(&dev->frontends, 1) == NULL) {
printk(KERN_ERR "%s() failed to alloc\n", __func__);
return -ENOMEM;
}
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/media/video/videobuf-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,8 @@ void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f)
dvb_dmx_release(&fe->dvb.demux);
dvb_unregister_frontend(fe->dvb.frontend);
}
if(fe->dvb.frontend) { /* always allocated, may have been reset */
if(fe->dvb.frontend) /* always allocated, may have been reset */
dvb_frontend_detach(fe->dvb.frontend);
fe->dvb.frontend = NULL;
}
list_del(list);
kfree(fe);
}
Expand Down Expand Up @@ -360,15 +358,14 @@ int videobuf_dvb_find_frontend(struct videobuf_dvb_frontends *f, struct dvb_fron
return ret;
}

struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(void *private, struct videobuf_dvb_frontends *f, int id)
struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(struct videobuf_dvb_frontends *f, int id)
{
struct videobuf_dvb_frontend *fe;

fe = kzalloc(sizeof(struct videobuf_dvb_frontend),GFP_KERNEL);
if (fe == NULL)
goto fail_alloc;

fe->dev = private;
fe->id = id;
mutex_init(&fe->dvb.lock);

Expand Down
3 changes: 1 addition & 2 deletions trunk/include/media/videobuf-dvb.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ struct videobuf_dvb {

struct videobuf_dvb_frontend {
struct list_head felist;
void *dev;
int id;
struct videobuf_dvb dvb;
};
Expand Down Expand Up @@ -57,7 +56,7 @@ int videobuf_dvb_register_adapter(struct videobuf_dvb_frontends *f,

int videobuf_dvb_register_frontend(struct dvb_adapter *adapter, struct videobuf_dvb *dvb);

struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(void *private, struct videobuf_dvb_frontends *f, int id);
struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(struct videobuf_dvb_frontends *f, int id);

struct videobuf_dvb_frontend * videobuf_dvb_get_frontend(struct videobuf_dvb_frontends *f, int id);
int videobuf_dvb_find_frontend(struct videobuf_dvb_frontends *f, struct dvb_frontend *p);
Expand Down

0 comments on commit 43d19e6

Please sign in to comment.