From: Daniel Lezcano Date: Fri, 26 Oct 2012 10:26:24 +0000 (+0200) Subject: cpuidle / sysfs: change function parameter X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~88^2~11^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aef40e288acfb3cc28ff77528b34ef66683bed6;p=pandora-kernel.git cpuidle / sysfs: change function parameter The function needs the cpuidle_device which is initially passed to the caller. The current code gets the struct device from the struct cpuidle_device, pass it the cpuidle_add_sysfs function. This function calls per_cpu(cpuidle_devices, cpu) to get the cpuidle_device. This patch pass the cpuidle_device instead and simplify the code. Signed-off-by: Daniel Lezcano Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed