From: Greg Kroah-Hartman Date: Sat, 8 Mar 2008 22:07:16 +0000 (+0530) Subject: sysdev: fix problem with sysdev_class being re-registered X-Git-Tag: v2.6.25-rc6~48^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef79df263062fd04fe9db4ee1b9f014a87a8e924;p=pandora-kernel.git sysdev: fix problem with sysdev_class being re-registered We need to initialize the kobject for a sysdev_class as it could have been recycled (stupid static kobjects...) We also do the same thing in case sysdev devices are being re-registered. Thanks to Balaji Rao for pointing out the problem. Signed-off-by: Balaji Rao Tested-by: Mikael Pettersson Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed