From: Viresh Kumar Date: Tue, 5 Feb 2013 21:21:14 +0000 (+0100) Subject: cpufreq: Don't remove sysfs link for policy->cpu X-Git-Tag: v3.9-rc1~146^2~3^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73bf0fc2b03d1f4fdada0ec430dc20bfb089cfd5;p=pandora-kernel.git cpufreq: Don't remove sysfs link for policy->cpu "cpufreq" directory in policy->cpu is never created using sysfs_create_link(), but using kobject_init_and_add(). And so we shouldn't call sysfs_remove_link() for policy->cpu(). sysfs stuff for policy->cpu is automatically removed when we call kobject_put() for dying policy. Signed-off-by: Viresh Kumar Tested-by: Dirk Brandewie Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed