From 7eaef0ed512fb3547b318c571681c7a649865387 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Mon, 24 May 2010 20:43:43 +0200 Subject: [PATCH] fix compilation on not-yeeloong --- bus/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bus/pci.c b/bus/pci.c index d8698ba33..3e2126962 100644 --- a/bus/pci.c +++ b/bus/pci.c @@ -49,7 +49,7 @@ grub_dma_get_phys (struct grub_pci_dma_chunk *ch) } #else -void * +volatile void * grub_dma_get_virt (struct grub_pci_dma_chunk *ch) { return (void *) ch; @@ -91,6 +91,7 @@ grub_pci_iterate (grub_pci_iteratefunc_t hook) if (id >> 16 == 0xFFFF) continue; +#ifdef GRUB_MACHINE_MIPS_YEELOONG /* Skip ghosts. */ if (id == GRUB_YEELOONG_OHCI_PCIID && dev.function == GRUB_YEELOONG_OHCI_GHOST_FUNCTION) @@ -98,6 +99,7 @@ grub_pci_iterate (grub_pci_iteratefunc_t hook) if (id == GRUB_YEELOONG_EHCI_PCIID && dev.function == GRUB_YEELOONG_EHCI_GHOST_FUNCTION) continue; +#endif if (hook (dev, id)) return;