Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363919
b: refs/heads/master
c: 0918e59
h: refs/heads/master
i:
  363917: 26d5a07
  363915: 1752fa2
  363911: 59e18da
  363903: 49deb8c
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Apr 5, 2013
1 parent ddce567 commit 212a582
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: ea1cc3973a6f3832956d99f74b20970a4e71bd37
refs/heads/master: 0918e595ae45d99e0bd8a9950a0f0cb0e2a9c948
4 changes: 1 addition & 3 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ struct comedi_file_info {
struct comedi_device *device;
struct comedi_subdevice *read_subdevice;
struct comedi_subdevice *write_subdevice;
struct device *hardware_device;
};

static DEFINE_MUTEX(comedi_board_minor_table_lock);
Expand Down Expand Up @@ -2368,7 +2367,6 @@ struct comedi_device *comedi_alloc_board_minor(struct device *hardware_device)
return ERR_PTR(-ENOMEM);
}
info->device = dev;
info->hardware_device = hardware_device;
comedi_device_init(dev);
comedi_set_hw_dev(dev, hardware_device);
mutex_lock(&dev->mutex);
Expand Down Expand Up @@ -2415,7 +2413,7 @@ void comedi_release_hardware_device(struct device *hardware_device)
minor++) {
mutex_lock(&comedi_board_minor_table_lock);
info = comedi_board_minor_table[minor];
if (info && info->hardware_device == hardware_device) {
if (info && info->device->hw_dev == hardware_device) {
comedi_board_minor_table[minor] = NULL;
mutex_unlock(&comedi_board_minor_table_lock);
comedi_free_board_file_info(info);
Expand Down

0 comments on commit 212a582

Please sign in to comment.