]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
pata_sil680: Fix build on arch/ppc
authorBenjamin Herrenschmidt <benh@ozlabs.org>
Tue, 8 Apr 2008 21:51:07 +0000 (07:51 +1000)
committerJeff Garzik <jeff@garzik.org>
Wed, 9 Apr 2008 05:06:33 +0000 (01:06 -0400)
Commit 0f436eff54f90419ac1b8accfb3e6e17c4b49a4e breaks build on
arch/ppc as it doesn't implement the machine_is() macro.

This fixes it by using CONFIG_PPC_MERGE instead which represents
arch/powerpc only, while CONFIG_PPC is set for both.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_sil680.c

index 3988e44f4934b198a2beb1798ef903c6ce7979de..7c5b2dd9a1a1fdd851775cb462414f1dd8bc7457 100644 (file)
@@ -270,7 +270,7 @@ static u8 sil680_init_chip(struct pci_dev *pdev, int *try_mmio)
                tmpbyte & 1, tmpbyte & 0x30);
 
        *try_mmio = 0;
-#ifdef CONFIG_PPC
+#ifdef CONFIG_PPC_MERGE
        if (machine_is(cell))
                *try_mmio = (tmpbyte & 1) || pci_resource_start(pdev, 5);
 #endif