Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337095
b: refs/heads/master
c: 0a7717d
h: refs/heads/master
i:
  337093: 5d3829e
  337091: 2bb2f4b
  337087: 779650b
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 5cf4c99 commit d8bc11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 7f2f7e050bea242735880b7876d9771efb580213
refs/heads/master: 0a7717dfe097d7a0a08e824ed39547c3e6e9d7e8
3 changes: 2 additions & 1 deletion trunk/drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,10 @@ into comedi's buffer */
static inline void comedi_set_hw_dev(struct comedi_device *dev,
struct device *hw_dev)
{
if (dev->hw_dev == hw_dev)
return;
if (dev->hw_dev)
put_device(dev->hw_dev);

dev->hw_dev = hw_dev;
if (dev->hw_dev) {
dev->hw_dev = get_device(dev->hw_dev);
Expand Down

0 comments on commit d8bc11c

Please sign in to comment.