From: Jean Delvare Date: Wed, 28 Sep 2011 15:11:00 +0000 (-0700) Subject: hwmon: (coretemp) Fixup platform device ID change X-Git-Tag: v3.1-rc9~7^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0eb9782ad9b1bd496ba61cd5ea27ccb8db21e885;p=pandora-kernel.git hwmon: (coretemp) Fixup platform device ID change With recent change "hwmon: (coretemp) don't use kernel assigned CPU number as platform device ID", the microcode check is now running on random CPU. Fix that by checking the microcode before creating the platform device rather than at probe time. Also avoid calling TO_PHYS_ID(cpu) twice in the same function, it's expensive. Signed-off-by: Jean Delvare Cc: Jan Beulich Cc: Guenter Roeck Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed