]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fix compilation on not-yeeloong
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 24 May 2010 18:43:43 +0000 (20:43 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 24 May 2010 18:43:43 +0000 (20:43 +0200)
bus/pci.c

index d8698ba33b9f6f1ee7766918ecc32d07906e0d67..3e2126962b226527f958cef8eb3b61d14016c922 100644 (file)
--- 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;