From f0441d448689ce2d7392854af8705a220d12bec9 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 7 Oct 2001 17:02:07 +0000 Subject: [PATCH] fix detection thinko broken yesterday - thanks martin git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1198 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/busses/i2c-viapro.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/kernel/busses/i2c-viapro.c b/kernel/busses/i2c-viapro.c index 8ea68029..e895a82f 100644 --- a/kernel/busses/i2c-viapro.c +++ b/kernel/busses/i2c-viapro.c @@ -211,15 +211,14 @@ int vt596_setup(void) /* try 2nd address and config reg. for 596 */ if((num->dev == PCI_DEVICE_ID_VIA_82C596_3) && (!pci_read_config_word(VT596_dev, SMBBA2, &vt596_smba)) && - (vt596_smba & 0x1)) + (vt596_smba & 0x1)) { smb_cf_hstcfg = 0x84; - else - goto FAIL; - } else { -FAIL: - printk - ("i2c-viapro.o: Cannot configure SMBus I/O Base address\n"); - return(-ENODEV); + } else { + /* no matches at all */ + printk("i2c-viapro.o: Cannot configure SMBus " + "I/O Base address\n"); + return(-ENODEV); + } } } vt596_smba &= 0xfff0;