Commit:     acf346a311588e4cb659c183b9e312fa313dbb7f
Parent:     f08a34874f93d5081c735ffcb2f9071be9b5d270
Author:     Hans de Goede <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 24 23:36:00 2007 +0200
Committer:  Mark M. Hoffman <[EMAIL PROTECTED]>
CommitDate: Mon Jul 30 21:05:07 2007 -0400

    hwmon: fix lm78 detection regression
    Here is a small but important bugfix to the lm78 driver. I found out about 
    problem because a Fedora user filed a bug that the lm78 driver no longer 
    on his system:
    The problem is that sometime ago the isa lm78 detection was made more 
    and this new code now checks the chip-id, but does not accept a chip-id of 
    however a chip-id of 20h is valid, and is excepted in the main probe 
    of the driver, see line 551. This fixed also makes the isa detection code
    accept the chip-id of 0x20 fixing this issue.
    Signed-off-by: Hans de Goede <[EMAIL PROTECTED]>
    Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]>
 drivers/hwmon/lm78.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c
index 9fb572f..565c4e6 100644
--- a/drivers/hwmon/lm78.c
+++ b/drivers/hwmon/lm78.c
@@ -864,7 +864,7 @@ static int __init lm78_isa_found(unsigned short address)
        /* Determine the chip type */
        outb_p(LM78_REG_CHIPID, address + LM78_ADDR_REG_OFFSET);
        val = inb_p(address + LM78_DATA_REG_OFFSET);
-       if (val == 0x00                 /* LM78 */
+       if (val == 0x00 || val == 0x20  /* LM78 */
         || val == 0x40                 /* LM78-J */
         || (val & 0xfe) == 0xc0)       /* LM79 */
                found = 1;
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