drm: Change first valid DRM drawable ID to be 1 instead of 0.
author=?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com>
Tue, 24 Oct 2006 13:20:15 +0000 (23:20 +1000)
committerairlied <airlied@linux.ie>
Thu, 7 Dec 2006 04:53:29 +0000 (15:53 +1100)
commitcdec2f82b11afbe4933fa9a9b3ed567db14fd237
tree2acdadd167643b793d9cc2e118ca2738bcb86237
parentb03ed6f2fc519930fe3950365be59f0c079ce5d8
drm: Change first valid DRM drawable ID to be 1 instead of 0.

This makes it easier for userspace to know when it needs to allocate an ID.

Also free drawable information memory when it's no longer needed.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_drawable.c
drivers/char/drm/drm_drv.c