Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83606
b: refs/heads/master
c: cc8259a
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas authored and Linus Torvalds committed Feb 6, 2008
1 parent 93f83c0 commit 5f55ac5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 6ed3003c19a96fe18edf8179c4be6fe14abbebbc
refs/heads/master: cc8259a6666de456460bacdd5637f5e2d71790ea
8 changes: 4 additions & 4 deletions trunk/drivers/pnp/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ int pnp_activate_dev(struct pnp_dev *dev)
int error;

if (dev->active)
return 0; /* the device is already active */
return 0;

/* ensure resources are allocated */
if (pnp_auto_config_dev(dev))
Expand All @@ -524,7 +524,7 @@ int pnp_activate_dev(struct pnp_dev *dev)
return error;

dev->active = 1;
return 1;
return 0;
}

/**
Expand All @@ -538,7 +538,7 @@ int pnp_disable_dev(struct pnp_dev *dev)
int error;

if (!dev->active)
return 0; /* the device is already disabled */
return 0;

error = pnp_stop_dev(dev);
if (error)
Expand All @@ -551,7 +551,7 @@ int pnp_disable_dev(struct pnp_dev *dev)
pnp_clean_resource_table(&dev->res);
up(&pnp_res_mutex);

return 1;
return 0;
}

/**
Expand Down

0 comments on commit 5f55ac5

Please sign in to comment.