From: Henrik Rydberg Date: Sun, 19 Oct 2008 03:27:35 +0000 (-0700) Subject: hwmon: applesmc: specified number of bytes to read should match actual X-Git-Tag: v2.6.28-rc1~183 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=05224091af06177c0ce7c1fae1f498455b47a6be;p=linux-2.6-omap-h63xx.git hwmon: applesmc: specified number of bytes to read should match actual At one single place in the code, the specified number of bytes to read and the actual number of bytes read differ by one. This one-liner patch fixes that inconsistency. Signed-off-by: Henrik Rydberg Cc: Nicolas Boichat Cc: Riki Oktarianto Cc: Mark M. Hoffman Cc: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c index b06b8e090a2..b401975bc0d 100644 --- a/drivers/hwmon/applesmc.c +++ b/drivers/hwmon/applesmc.c @@ -325,7 +325,7 @@ static int applesmc_get_key_type(char* key, char* type) return -EIO; } - outb(5, APPLESMC_DATA_PORT); + outb(6, APPLESMC_DATA_PORT); for (i = 0; i < 6; i++) { if (__wait_status(0x05))