Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363965
b: refs/heads/master
c: 34b6840
h: refs/heads/master
i:
  363963: c336fc0
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 8, 2013
1 parent 64335f2 commit bec178c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6013a9a57bbe0fd147482297b04d3d848aa24b67
refs/heads/master: 34b68400ee3aabda0cd0c951fca3b8e6fd96c015
3 changes: 3 additions & 0 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it)
/* initialize dev->driver here so
* comedi_error() can be called from attach */
dev->driver = driv;
dev->board_name = dev->board_ptr ? *(const char **)dev->board_ptr
: dev->driver->driver_name;
ret = driv->attach(dev, it);
if (ret >= 0)
ret = comedi_device_postconfig(dev);
Expand Down Expand Up @@ -423,6 +425,7 @@ int comedi_auto_config(struct device *hardware_device,
/* Note: comedi_alloc_board_minor() locked dev->mutex. */

dev->driver = driver;
dev->board_name = dev->driver->driver_name;
ret = driver->auto_attach(dev, context);
if (ret >= 0)
ret = comedi_device_postconfig(dev);
Expand Down

0 comments on commit bec178c

Please sign in to comment.