mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-11 16:40:16 +00:00
remove unused find() function
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1832 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
09b57fd0ea
commit
f798af28dc
1 file changed
-27
@@ -509,33 +509,6 @@ static int via686a_attach_adapter(struct i2c_adapter *adapter)
|
||||
return i2c_detect(adapter, &addr_data, via686a_detect);
|
||||
}
|
||||
|
||||
/* Locate chip and get correct base address */
|
||||
static int via686a_find(int *address)
|
||||
{
|
||||
u16 val;
|
||||
|
||||
if (!pci_present())
|
||||
return -ENODEV;
|
||||
|
||||
if (!(s_bridge = pci_find_device(PCI_VENDOR_ID_VIA,
|
||||
PCI_DEVICE_ID_VIA_82C686_4,
|
||||
NULL)))
|
||||
return -ENODEV;
|
||||
|
||||
if (PCIBIOS_SUCCESSFUL !=
|
||||
pci_read_config_word(s_bridge, VIA686A_BASE_REG, &val))
|
||||
return -ENODEV;
|
||||
*address = val & ~(VIA686A_EXTENT - 1);
|
||||
if (*address == 0 && force_addr == 0) {
|
||||
printk("via686a.o: base address not set - upgrade BIOS or use force_addr=0xaddr\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
if (force_addr)
|
||||
*address = force_addr; /* so detect will get called */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int via686a_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user