kref.h: Adapt to Linux 3.8's drm
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 2 Nov 2013 14:36:46 +0000 (15:36 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 3 Nov 2013 07:46:16 +0000 (08:46 +0100)
commit32dbd5b5c19b875c943ba11acd45888ebc3c1002
treeb559b2f8e8df02421c6fe34ac2f814785db32f98
parentc4962bc9917836bb74e41f9b71d3ad279b7e5157
kref.h: Adapt to Linux 3.8's drm

* Implement kref_sub()

* The internal counter is used by the drm code, rename it to refcount

* The internal counter must be of type atomic_t
sys/dev/drm/include/linux/kref.h