Commit:     345a22245451c0fd2c44b2afb5dfb75628b487fa
Parent:     ff8421f733c91a70d8edadf9ce2842fca66172fa
Author:     Juerg Haefliger <[EMAIL PROTECTED]>
AuthorDate: Sat Jan 26 08:54:24 2008 -0800
Committer:  Mark M. Hoffman <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 20:39:44 2008 -0500

    hwmon: (dme1737) fix Super-IO device ID override
    The dme1737 has a second place where the Super-IO device ID is
    checked. This has been missed by Jean's initial patch that adds
    support for user-controlled Super-IO device ID override. This patch
    fixes this issue.
    Signed-off-by: Juerg Haefliger <juergh at>
    Acked-by: Jean Delvare <[EMAIL PROTECTED]>
    Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]>
 drivers/hwmon/dme1737.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/hwmon/dme1737.c b/drivers/hwmon/dme1737.c
index 307f48d..ddddd9f 100644
--- a/drivers/hwmon/dme1737.c
+++ b/drivers/hwmon/dme1737.c
@@ -2030,7 +2030,7 @@ static int dme1737_i2c_get_features(int sio_cip, struct 
dme1737_data *data)
        /* Check device ID
         * The DME1737 can return either 0x78 or 0x77 as its device ID. */
-       reg = dme1737_sio_inb(sio_cip, 0x20);
+       reg = force_id ? force_id : dme1737_sio_inb(sio_cip, 0x20);
        if (!(reg == 0x77 || reg == 0x78)) {
                err = -ENODEV;
                goto exit;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to