Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19568
b: refs/heads/master
c: d1d051b
h: refs/heads/master
v: v3
  • Loading branch information
Adam Belay authored and Jaroslav Kysela committed Jan 22, 2006
1 parent b342e80 commit 567fd00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: ec80859ed292a55334df68fc2492f1303cf3a0ac
refs/heads/master: d1d051b28e9d3c3bed0bd15a2b49df3d04f7768f
9 changes: 7 additions & 2 deletions trunk/drivers/pnp/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ static int card_resume(struct pnp_dev *dev)

int pnp_register_card_driver(struct pnp_card_driver * drv)
{
int count = 0;
int count;
struct list_head *pos, *temp;

drv->link.name = drv->name;
Expand All @@ -374,10 +374,15 @@ int pnp_register_card_driver(struct pnp_card_driver * drv)
drv->link.suspend = drv->suspend ? card_suspend : NULL;
drv->link.resume = drv->resume ? card_resume : NULL;

count = pnp_register_driver(&drv->link);
if (count < 0)
return count;

spin_lock(&pnp_lock);
list_add_tail(&drv->global_list, &pnp_card_drivers);
spin_unlock(&pnp_lock);
pnp_register_driver(&drv->link);

count = 0;

list_for_each_safe(pos,temp,&pnp_cards){
struct pnp_card *card = list_entry(pos, struct pnp_card, global_list);
Expand Down

0 comments on commit 567fd00

Please sign in to comment.