diff options
Diffstat (limited to 'src/mainboard/google/jecht/chromeos.c')
-rw-r--r-- | src/mainboard/google/jecht/chromeos.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainboard/google/jecht/chromeos.c b/src/mainboard/google/jecht/chromeos.c index f99fd6d438..c7925fdd65 100644 --- a/src/mainboard/google/jecht/chromeos.c +++ b/src/mainboard/google/jecht/chromeos.c @@ -51,10 +51,11 @@ void fill_lb_gpios(struct lb_gpios *gpios) int get_write_protect_state(void) { - device_t dev; #ifdef __PRE_RAM__ + pci_devfn_t dev; dev = PCI_DEV(0, 0x1f, 2); #else + struct device *dev; dev = dev_find_slot(0, PCI_DEVFN(0x1f, 2)); #endif return (pci_read_config32(dev, SATA_SP) >> FLAG_SPI_WP) & 1; @@ -62,10 +63,11 @@ int get_write_protect_state(void) int get_recovery_mode_switch(void) { - device_t dev; #ifdef __PRE_RAM__ + pci_devfn_t dev; dev = PCI_DEV(0, 0x1f, 2); #else + struct device *dev; dev = dev_find_slot(0, PCI_DEVFN(0x1f, 2)); #endif return (pci_read_config32(dev, SATA_SP) >> FLAG_REC_MODE) & 1; |