]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Driver core: check return code of sysfs_create_link()
authorCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 18 Jul 2007 08:43:47 +0000 (01:43 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Jul 2007 22:49:50 +0000 (15:49 -0700)
commit2ee97caf0a6602f749ddbfdb1449e383e1212707
tree6f0fb8f1c856aeb20149a73b1cb85ba943d11ce8
parentbe3884943674f8ee7656b1d8b71c087ec900c836
Driver core: check return code of sysfs_create_link()

Check for return value of sysfs_create_link() in device_add() and
device_rename().  Add helper functions device_add_class_symlinks() and
device_remove_class_symlinks() to make the code easier to read.

[akpm@linux-foundation.org: fix unused var warnings]

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c