Return 0, (as for 40pin cable if SB not found)

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Rudolf Marek <r.marek@assembler.cz>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6070 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Rudolf Marek 2010-11-14 14:39:29 +00:00
parent 5d72eb5e8e
commit 727edb0b32
1 changed files with 2 additions and 2 deletions

View File

@ -35,11 +35,11 @@ u32 vt8237_ide_80pin_detect(struct device *dev)
lpc_dev = dev_find_device(PCI_VENDOR_ID_VIA, lpc_dev = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VT8237A_LPC, 0); PCI_DEVICE_ID_VIA_VT8237A_LPC, 0);
if (!lpc_dev) if (!lpc_dev)
return; return 0;
acpi_io_base = pci_read_config16(lpc_dev, 0x88); acpi_io_base = pci_read_config16(lpc_dev, 0x88);
if (!acpi_io_base || (acpi_io_base & ~1) == 0) if (!acpi_io_base || (acpi_io_base & ~1) == 0)
return; return 0;
acpi_io_base &= ~1; acpi_io_base &= ~1;
gpio_in = inl(acpi_io_base + 0x48); gpio_in = inl(acpi_io_base + 0x48);