Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315666
b: refs/heads/master
c: 46afede
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Gustavo Padovan committed Jun 30, 2012
1 parent eb7d31c commit bb53121
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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: 38b3fef1730319e2730af3fc9f73698e3a9aeb4a
refs/heads/master: 46afededca7d8b0117e05b23e5cbcfa0e2bbbd92
18 changes: 10 additions & 8 deletions trunk/drivers/bluetooth/dtl1_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,29 +586,31 @@ static int dtl1_confcheck(struct pcmcia_device *p_dev, void *priv_data)
static int dtl1_config(struct pcmcia_device *link)
{
dtl1_info_t *info = link->priv;
int i;
int ret;

/* Look for a generic full-sized window */
link->resource[0]->end = 8;
if (pcmcia_loop_config(link, dtl1_confcheck, NULL) < 0)
ret = pcmcia_loop_config(link, dtl1_confcheck, NULL);
if (ret)
goto failed;

i = pcmcia_request_irq(link, dtl1_interrupt);
if (i != 0)
ret = pcmcia_request_irq(link, dtl1_interrupt);
if (ret)
goto failed;

i = pcmcia_enable_device(link);
if (i != 0)
ret = pcmcia_enable_device(link);
if (ret)
goto failed;

if (dtl1_open(info) != 0)
ret = dtl1_open(info);
if (ret)
goto failed;

return 0;

failed:
dtl1_detach(link);
return -ENODEV;
return ret;
}

static const struct pcmcia_device_id dtl1_ids[] = {
Expand Down

0 comments on commit bb53121

Please sign in to comment.