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:47 +0100 [thread overview]
Message-ID: <1204800947-21569-10-git-send-email-jonas@southpole.se> (raw)
In-Reply-To: <1204800947-21569-9-git-send-email-jonas@southpole.se>
Makes struct pci_device_id array const and adds section attribute __devinitconst
Signed-off-by: Jonas Bonn <jonas@southpole.se>
---
drivers/net/e1000e/netdev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index fc5c63f..acfc157 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -4059,7 +4059,7 @@ static struct pci_error_handlers e1000_err_handler = {
.resume = e1000_io_resume,
};
-static struct pci_device_id e1000_pci_tbl[] = {
+static DECLARE_PCI_DEVICE_TABLE(e1000_pci_tbl) = {
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_COPPER), board_82571 },
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_FIBER), board_82571 },
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_QUAD_COPPER), board_82571 },
--
1.5.4.3
next prev parent reply other threads:[~2008-03-06 10:58 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 ` [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 10:55 ` Jonas Bonn [this message]
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-10-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®