drm: Fix atomic_add_unless()
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 31 Oct 2015 08:51:57 +0000 (09:51 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 31 Oct 2015 09:20:55 +0000 (10:20 +0100)
commitf06b35bad17aecf317fc479c2289d2227795fe47
treeee253e61f413b3b306885ba0d67951ece5ba66fd
parentf14bcbec98cc33209a29d1d49cf6656cc8d4b8a6
drm: Fix atomic_add_unless()

* atomic_cmpset_int() doesn't return the same kind of results as the
  Linux atomic_cmpxchg() function

* this code was semi-randomly breaking HDMI detection on Radeon hardware

Author: Yellow Rabbit
sys/dev/drm/include/linux/atomic.h