From: Dan Carpenter Date: Wed, 7 Mar 2012 11:57:36 +0000 (+0300) Subject: ACPI throttling: fix endian bug in acpi_read_throttling_status() X-Git-Tag: v3.4-rc1~18^2~3^9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=344e222edf486bf42da1ced137e36df7a345b0ad;p=pandora-kernel.git ACPI throttling: fix endian bug in acpi_read_throttling_status() Using a u64 here creates an endian bug. We store a u32 number in the top byte which is a larger number than intended on big endian systems. There is no reason to use a 64 bit data type here, I guess it was just an oversight. I removed the initialization to zero as well. It's needed with a u64 but with a u32, the variable gets initialized properly inside the call to acpi_os_read_port(). Signed-off-by: Dan Carpenter Signed-off-by: Len Brown --- Reading git-diff-tree failed