drm: fix error returns, sysfs error handling
authorJeff Garzik <jeff@garzik.org>
Tue, 10 Oct 2006 21:23:37 +0000 (14:23 -0700)
committerDave Airlie <airlied@linux.ie>
Wed, 25 Oct 2006 16:40:40 +0000 (09:40 -0700)
commit24f73c92a990ecd3d1bb846267780a264d830065
tree83c496cc26eaa6e6b8b0ad0fc945d9e93f0af0de
parent0d960d26c42888cf327df7faa1a8aa62bab53fa4
drm: fix error returns, sysfs error handling

- callers of drm_sysfs_create() and drm_sysfs_device_add() looked for
  errors using IS_ERR(), but the functions themselves only ever returned
  NULL on error.  Fixed.

- unwind from, and propagate sysfs errors

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_sysfs.c