Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325157
b: refs/heads/master
c: 559e9a6
h: refs/heads/master
i:
  325155: ce50320
v: v3
  • Loading branch information
Güngör Erseymen authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent 747e66a commit eca746a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 293b048a1677162a1c23cdaa441525c2602705f2
refs/heads/master: 559e9a6899cd3056764e4272681b64eb326df3f1
6 changes: 2 additions & 4 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@ int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it)
return -EBUSY;

for (driv = comedi_drivers; driv; driv = driv->next) {
if (!try_module_get(driv->module)) {
if (!try_module_get(driv->module))
continue;
}
if (driv->num_names) {
dev->board_ptr = comedi_recognize(driv, it->board_name);
if (dev->board_ptr)
Expand All @@ -174,9 +173,8 @@ int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it)
/* recognize has failed if we get here */
/* report valid board names before returning error */
for (driv = comedi_drivers; driv; driv = driv->next) {
if (!try_module_get(driv->module)) {
if (!try_module_get(driv->module))
continue;
}
comedi_report_boards(driv);
module_put(driv->module);
}
Expand Down

0 comments on commit eca746a

Please sign in to comment.