From: Anton Blanchard Date: Tue, 6 Apr 2010 21:34:55 +0000 (-0700) Subject: devmem: handle class_create() failure X-Git-Tag: v2.6.34-rc4~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e191f7bb083544dc4fa3879ff81caf97c65d197;p=pandora-kernel.git devmem: handle class_create() failure I hit this when we had a bug in IDR for a few days. Basically sysfs would fail to create new inodes since it uses an IDR and therefore class_create would fail. While we are unlikely to see this fail we may as well handle it instead of oopsing. Signed-off-by: Anton Blanchard Reviewed-by: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed