From: Stefan Richter Date: Sat, 24 May 2008 14:50:22 +0000 (+0200) Subject: firewire: clean up fw_card reference counting X-Git-Tag: v2.6.27-rc1~1074^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=459f79235d8faa0050180c7e0c7bb4b2b52cbdfd;p=pandora-kernel.git firewire: clean up fw_card reference counting This is a functionally equivalent replacement of the current reference counting of struct fw_card instances. It only converts it to common idioms as suggested by Kristian Høgsberg: - struct kref replaces atomic_t as the counter. - wait_for_completion is used to wait for all card users to complete. BTW, it may make sense to count card->flush_timer and card->work as card users too. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed