diff options
Diffstat (limited to 'drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index ea27b15007e9..1649846f9ceb 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -76,13 +76,13 @@ static int dvb_bt8xx_start_feed(struct dvb_demux_feed *dvbdmxfeed) | |||
76 | if (!dvbdmx->dmx.frontend) | 76 | if (!dvbdmx->dmx.frontend) |
77 | return -EINVAL; | 77 | return -EINVAL; |
78 | 78 | ||
79 | down(&card->lock); | 79 | mutex_lock(&card->lock); |
80 | card->nfeeds++; | 80 | card->nfeeds++; |
81 | rc = card->nfeeds; | 81 | rc = card->nfeeds; |
82 | if (card->nfeeds == 1) | 82 | if (card->nfeeds == 1) |
83 | bt878_start(card->bt, card->gpio_mode, | 83 | bt878_start(card->bt, card->gpio_mode, |
84 | card->op_sync_orin, card->irq_err_ignore); | 84 | card->op_sync_orin, card->irq_err_ignore); |
85 | up(&card->lock); | 85 | mutex_unlock(&card->lock); |
86 | return rc; | 86 | return rc; |
87 | } | 87 | } |
88 | 88 | ||
@@ -96,11 +96,11 @@ static int dvb_bt8xx_stop_feed(struct dvb_demux_feed *dvbdmxfeed) | |||
96 | if (!dvbdmx->dmx.frontend) | 96 | if (!dvbdmx->dmx.frontend) |
97 | return -EINVAL; | 97 | return -EINVAL; |
98 | 98 | ||
99 | down(&card->lock); | 99 | mutex_lock(&card->lock); |
100 | card->nfeeds--; | 100 | card->nfeeds--; |
101 | if (card->nfeeds == 0) | 101 | if (card->nfeeds == 0) |
102 | bt878_stop(card->bt); | 102 | bt878_stop(card->bt); |
103 | up(&card->lock); | 103 | mutex_unlock(&card->lock); |
104 | 104 | ||
105 | return 0; | 105 | return 0; |
106 | } | 106 | } |
@@ -788,7 +788,7 @@ static int dvb_bt8xx_probe(struct bttv_sub_device *sub) | |||
788 | if (!(card = kzalloc(sizeof(struct dvb_bt8xx_card), GFP_KERNEL))) | 788 | if (!(card = kzalloc(sizeof(struct dvb_bt8xx_card), GFP_KERNEL))) |
789 | return -ENOMEM; | 789 | return -ENOMEM; |
790 | 790 | ||
791 | init_MUTEX(&card->lock); | 791 | mutex_init(&card->lock); |
792 | card->bttv_nr = sub->core->nr; | 792 | card->bttv_nr = sub->core->nr; |
793 | strncpy(card->card_name, sub->core->name, sizeof(sub->core->name)); | 793 | strncpy(card->card_name, sub->core->name, sizeof(sub->core->name)); |
794 | card->i2c_adapter = &sub->core->i2c_adap; | 794 | card->i2c_adapter = &sub->core->i2c_adap; |
@@ -881,7 +881,7 @@ static int dvb_bt8xx_probe(struct bttv_sub_device *sub) | |||
881 | return -EFAULT; | 881 | return -EFAULT; |
882 | } | 882 | } |
883 | 883 | ||
884 | init_MUTEX(&card->bt->gpio_lock); | 884 | mutex_init(&card->bt->gpio_lock); |
885 | card->bt->bttv_nr = sub->core->nr; | 885 | card->bt->bttv_nr = sub->core->nr; |
886 | 886 | ||
887 | if ( (ret = dvb_bt8xx_load_card(card, sub->core->type)) ) { | 887 | if ( (ret = dvb_bt8xx_load_card(card, sub->core->type)) ) { |