commit | 5b13ed94a7d24fdc8abbac81e7e4d30ab22c6540 | [log] [tgz] |
---|---|---|
author | Ian Abbott <abbotti@mev.co.uk> | Fri Nov 08 15:03:32 2013 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 11 16:16:44 2013 -0800 |
tree | 0bfade11593603377f28228a2db2ed13cdaa7b7a | |
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>