Re: [PATCH v3] 8250_pci: add -ENODEV code for Intel EG20T PCH
From: Alan Cox
Date: Tue May 31 2011 - 05:23:01 EST
> V2: Delete #ifdef CONFIG_SERIAL_PCH_UART ~ #endif
> Use quirk table structure
I would keep the ifdef. We want to fall back and if we don't do that
then users currently using 8250 will have their system break on upgrade
which is not acceptable really.
So I'd keep with the patch below but:
> +static int pci_eg20tpch_init(struct pci_dev *dev)
> +{
#if !defined(CONFIG_SERIAL_PCH_UART) && ...
> + return -ENODEV;
#else
return 0;
#endif
> +}
I don't think we can avoid that one ifdef without breakage.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/