Subject: Re: [PATCH] drivers/net/: use DEFINE_PCI_DEVICE_TABLE()

From: Alexey Dobriyan <[email-masked]>
Date: Fri, 8 Jan 2010 09:34:47 +0200

On Thu, Jan 07, 2010 at 05:28:00PM -0500, Jeff Garzik wrote:
> On 01/07/2010 05:25 PM, Joe Perches wrote:
> > On Thu, 2010-01-07 at 23:58 +0200, Alexey Dobriyan wrote:
> >> Use DEFINE_PCI_DEVICE_TABLE() so we get place PCI ids table into correct section
> >> in every case.
> >
> > Good idea, but aren't there are some tables that are not const?
> 
> I hope not...  those tables are read by userland tools.

I checked non-static ones, they are readonly.
and PCI layer expects them to be readonly.

> Messing with the PCI ID tables as runtime is highly unusual, to say the 
> least.