From: Nan Li Date: Wed, 4 Mar 2015 10:48:35 +0000 (+0800) Subject: ACPI / sysfs: Treat the count field of counter_show() as unsigned X-Git-Tag: omap-for-v4.1/fixes-rc1~144^2~9^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b1a13228b321ea27bd53070bcd332417069ace8;p=pandora-kernel.git ACPI / sysfs: Treat the count field of counter_show() as unsigned The count field is an unsigned 32bit value, and the counter_show() function should also treat it as a unsigned value. Otherwise the counter may show negative number as we found on a machine: ... gpe23: 0 invalid gpe24: -2071733 enabled gpe25: 0 invalid ... gpe_all: -2070980 sci: -2070949 Signed-off-by: Nan Li Signed-off-by: Lee, Chun-Yi Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed