Re: [PATCH] drivers/block/: add __devinitdata to all pci_device_id table of block drivers

From: Frank Seidel
Date: Sun Feb 03 2008 - 04:50:41 EST


On Sunday 03 February 2008 04:12, Denis Cheng wrote:
> --- a/drivers/block/cciss.c
> +++ b/drivers/block/cciss.c
> @@ -67,7 +67,7 @@ MODULE_LICENSE("GPL");
> #include <linux/cciss_ioctl.h>
>
> /* define the PCI info for the cards we can control */
> -static const struct pci_device_id cciss_pci_device_id[] = {
> +static const struct pci_device_id cciss_pci_device_id[] __devinitdata = {

it should be __devinitconst here

> --- a/drivers/block/cpqarray.c
> +++ b/drivers/block/cpqarray.c
> @@ -96,7 +96,7 @@ static struct board_type products[] = {
> };
>
> /* define the PCI info for the PCI cards this driver can control */
> -static const struct pci_device_id cpqarray_pci_device_id[] =
> +static const struct pci_device_id cpqarray_pci_device_id[] __devinitdata =

same here

> --- a/drivers/block/umem.c
> +++ b/drivers/block/umem.c
> @@ -1053,7 +1053,7 @@ static void mm_pci_remove(struct pci_dev *dev)
> pci_disable_device(dev);
> }
>
> -static const struct pci_device_id mm_pci_ids[] = {
> +static const struct pci_device_id mm_pci_ids[] __devinitdata = {

same here

Thanks,
Frank
--
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/