From: Gerhard Pircher Date: Mon, 2 Feb 2009 19:12:22 +0000 (+0100) Subject: ide: Force VIA IDE legacy interrupts for AmigaOne boards X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f6514c1c5b55ab90f3ad1f3fc18b9daa5bd9c8c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ide: Force VIA IDE legacy interrupts for AmigaOne boards The AmigaOne uses the onboard VIA IDE controller in legacy mode (like the Pegasos). Signed-off-by: Gerhard Pircher Cc: "Grant Likely" Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/via82cxxx.c b/drivers/ide/via82cxxx.c index 703c3eeb20a..6092fe3f409 100644 --- a/drivers/ide/via82cxxx.c +++ b/drivers/ide/via82cxxx.c @@ -448,6 +448,11 @@ static int __devinit via_init_one(struct pci_dev *dev, const struct pci_device_i d.host_flags |= IDE_HFLAG_FORCE_LEGACY_IRQS; #endif +#ifdef CONFIG_AMIGAONE + if (machine_is(amigaone)) + d.host_flags |= IDE_HFLAG_FORCE_LEGACY_IRQS; +#endif + d.udma_mask = via_config->udma_mask; vdev = kzalloc(sizeof(*vdev), GFP_KERNEL);