Message ID | 20111110151852.GA7465@oksana.dev.rtsoft.ru |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show |
> The proper fix (stop OF code from returning NO_IRQ values) is pending. Please just apply the proper fix. > - The NO_IRQ disease spreads despite our willingness, even within > the new OF code. Then it can stop right here, because if the arch people don't fix their code to use zero their ATA port won't work. > +/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ > +#ifndef NO_IRQ > +#define NO_IRQ 0 > +#endif NAK - just test against zero. They've been complained at about this for over two years. Enough is enough. Alan -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index a72ab0d..f99e17b 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c @@ -16,6 +16,11 @@ #include <linux/of_platform.h> #include <linux/ata_platform.h> +/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ +#ifndef NO_IRQ +#define NO_IRQ 0 +#endif + static int __devinit pata_of_platform_probe(struct platform_device *ofdev) { int ret;