[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <157393863283F442885425D2C454285623D5FD3A@nasanexd02a.na.qualcomm.com>
Date: Sun, 29 Apr 2012 12:25:51 +0000
From: "Huang, Xiong" <xiong@....qualcomm.com>
To: Florian Fainelli <florian@...nwrt.org>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
qca-linux-team <qca-linux-team@...lcomm.com>,
nic-devel <nic-devel@...lcomm.com>
Subject: 答复: [PATCH 02/10] atl1c: add PHY link event(up/down) patch
> +
> +struct atl1c_platform_patch {
> + u16 pci_vid;
> + u16 pci_did;
> + u8 pci_revid;
> + u16 subsystem_vid;
> + u16 subsystem_did;
> + u32 patch_flag;
> +#define ATL1C_LINK_PATCH 0x1
> +};
> +static struct atl1c_platform_patch plats[] = {
This should be static const.
> +{0x1969, 0x2060, 0xC1, 0x1019, 0x8152, 0x1},
-------------------------------------------------------------------------------------------------------
How about if I revise it as:
static const struct atl1c_platform_patch plats[] __devinitdata = {
....}
the array is only used by atl1c_probe function. is it appropriate to add '__devinitdata' here ?
Thanks
-Xiong
Powered by blists - more mailing lists