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)
- 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>

No differences found