]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm: convert to idr_alloc()
authorTejun Heo <tj@kernel.org>
Thu, 7 Feb 2013 01:31:37 +0000 (12:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:30 +0000 (16:47 +1100)
commite823bb7ef2bf0bdaca142b9c7e2cbe1479fa6ebb
treeedd9391607ce772435e1874eb228b02964aff2f7
parent6d9443c3f6af504e14f535ee9507c7fd65058ed7
drm: convert to idr_alloc()

Convert to the much saner new idr interface.

Only compile tested.

* drm_ctxbitmap_next() error handling in drm_addctx() seems broken.
  drm_ctxbitmap_next() return -errno on failure not -1.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/gpu/drm/drm_context.c
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/drm_stub.c