From: Greg Kroah-Hartman Date: Wed, 8 Feb 2012 23:11:17 +0000 (-0800) Subject: driver-core: cpu: fix kobject warning when hotplugging a cpu X-Git-Tag: v3.3-rc4~41^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29bb5d4fd3140a7d5d02d858118c74a45f15c296;p=pandora-kernel.git driver-core: cpu: fix kobject warning when hotplugging a cpu Due to the sysdev conversion to struct device, the cpu objects get reused when adding a cpu after offlining it, which causes a big warning that the kobject portion is not properly initialized. So clear out the object before we register it again, so all is quiet. Reported-by: Konrad Rzeszutek Wilk Tested-by: Konrad Rzeszutek Wilk Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed