ACPI: dock: convert sysfs attributes to an attribute_group
authorAlex Chiang <achiang@hp.com>
Mon, 19 Oct 2009 21:14:24 +0000 (15:14 -0600)
committerLen Brown <len.brown@intel.com>
Tue, 3 Nov 2009 20:57:13 +0000 (15:57 -0500)
commit5f46c2f25cfbb5faca7550738ac42c4d1491ddc8
treebace354f58682fe00a60625c0311bfa528cbbb4d
parent012abeea669ea49636cf952d13298bb68654146a
ACPI: dock: convert sysfs attributes to an attribute_group

As suggested by Dmitry Torokhov, convert the individual sysfs
attributes into an attribute group.

This change eliminates quite a bit of copy/paste code in the
error handling paths.

Signed-off-by: Alex Chiang <achiang@hp.com>
Reviewed-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dock.c