diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2013-11-08 15:03:32 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-11 16:16:44 -0800 |
| commit | 5b13ed94a7d24fdc8abbac81e7e4d30ab22c6540 (patch) | |
| tree | 0bfade11593603377f28228a2db2ed13cdaa7b7a /include/linux | |
| parent | 45c2bc557ca333a2115bb9f812b026b482cca5fa (diff) | |
staging: comedi: add a kref to comedi device
Add a `struct kref refcount` member to `struct comedi_device` to allow
safe destruction of the comedi device. Only free the comedi device via
the 'release' callback `kref_put()`. Currently, nothing calls
`kref_put()`, so the safe destruction is ineffective, but this will be
addressed by later patches.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
