From: Ian Abbott Date: Fri, 8 Nov 2013 15:03:32 +0000 (+0000) Subject: staging: comedi: add a kref to comedi device X-Git-Tag: v3.14-rc1~150^2~775^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b13ed94a7d24fdc8abbac81e7e4d30ab22c6540;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed