From: Cornelia Huck Date: Wed, 18 Jul 2007 08:43:47 +0000 (-0700) Subject: Driver core: check return code of sysfs_create_link() X-Git-Tag: v2.6.23-rc1~480^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ee97caf0a6602f749ddbfdb1449e383e1212707;p=pandora-kernel.git 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 Acked-by: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed