From: Takashi Iwai Date: Fri, 15 May 2015 08:20:05 +0000 (+0800) Subject: UBI: Use static class and attribute groups X-Git-Tag: omap-for-v4.2/fixes-rc1^2~121^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53cd255ce7539eff28d86eafb3416a6d964be4df;p=pandora-kernel.git UBI: Use static class and attribute groups This patch cleans up the manual device_create_file() or class_create_file() calls by replacing with static attribute groups. It simplifies the code and also avoids the possible races between the device/class registration and sysfs creations. For the simplification, also make ubi_class a static instance with initializers, too. Amend a bit by Hujianyang. Signed-off-by: Takashi Iwai Tested-by: Sheng Yong Signed-off-by: hujianyang Signed-off-by: Richard Weinberger --- Reading git-diff-tree failed