drm: fix return value check
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 8 Dec 2006 23:49:47 +0000 (10:49 +1100)
committerDave Airlie <airlied@linux.ie>
Mon, 11 Dec 2006 07:28:45 +0000 (18:28 +1100)
commit94f060bd0f78814f4daf8c7942bd710af52c7d6f
treec18ba952bebbaf73497d9cd593bb9d023e81331d
parent9202f32558601c2c99ddc438eb3218131d00d413
drm: fix return value check

class_create() and class_device_create() return error code as a pointer on
failure.  These return values need to be checked by IS_ERR().

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_sysfs.c