From: Jonas Bonn <jonas@southpole.se>
To: jonas@southpole.se, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, jgarzik@pobox.com
Subject: [PATCH] net: use DECLARE_PCI_DEVICE_TABLE
Date: Thu, 6 Mar 2008 11:55:39 +0100 [thread overview]
Message-ID: <1204800947-21569-2-git-send-email-jonas@southpole.se> (raw)
In-Reply-To: <1204800947-21569-1-git-send-email-jonas@southpole.se>
Makes struct pci_device_id array const and moves it to __devinitconst
Signed-off-by: Jonas Bonn <jonas@southpole.se>
---
drivers/net/cassini.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c
index 14299f8..1451533 100644
--- a/drivers/net/cassini.c
+++ b/drivers/net/cassini.c
@@ -233,7 +233,7 @@ static u16 link_modes[] __devinitdata = {
CAS_BMCR_SPEED1000|BMCR_FULLDPLX /* 5 : 1000bt full duplex */
};
-static struct pci_device_id cas_pci_tbl[] __devinitdata = {
+static DECLARE_PCI_DEVICE_TABLE(cas_pci_tbl) = {
{ PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_CASSINI,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
{ PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_SATURN,
--
1.5.4.3
next prev parent reply other threads:[~2008-03-06 11:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 10:55 struct pci_device_id declaration cleanups Jonas Bonn
2008-03-06 10:55 ` Jonas Bonn [this message]
2008-03-06 10:55 ` [PATCH] net: use DECLARE_PCI_DEVICE_TABLE Jonas Bonn
2008-03-06 10:55 ` Jonas Bonn
2008-03-06 10:55 ` Jonas Bonn
2008-03-06 10:55 ` Jonas Bonn
2008-03-06 10:55 ` Jonas Bonn
2008-03-06 10:55 ` Jonas Bonn
2008-03-06 10:55 ` Jonas Bonn
2008-03-06 10:55 ` Jonas Bonn
2008-03-06 23:41 ` Andrew Morton
2008-03-07 0:18 ` David Miller
2008-03-07 7:58 ` Jonas Bonn
2008-03-06 12:25 ` struct pci_device_id declaration cleanups Christoph Hellwig
2008-03-06 12:36 ` Jonas Bonn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1204800947-21569-2-git-send-email-jonas@southpole.se \
--to=jonas@southpole.se \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®