From: Rasesh Mody <rmody@brocade.com>
To: <davem@davemloft.net>, <netdev@vger.kernel.org>
Cc: <adapter_linux_open_src_team@brocade.com>, <dradovan@brocade.com>,
Rasesh Mody <rmody@brocade.com>
Subject: [PATCH 06/45] bna: Use DEFINE_PCI_DEVICE_TABLE and Print Driver Version
Date: Mon, 18 Jul 2011 01:19:34 -0700 [thread overview]
Message-ID: <1310977178-312-7-git-send-email-rmody@brocade.com> (raw)
In-Reply-To: <1310977178-312-1-git-send-email-rmody@brocade.com>
Change details:
- Use DEFINE_PCI_DEVICE_TABLE in place of struct pci_device_id
- Print the dirver version when module is loaded
Signed-off-by: Rasesh Mody <rmody@brocade.com>
---
drivers/net/bna/bnad.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/bna/bnad.c b/drivers/net/bna/bnad.c
index f57e491..abad4e3 100644
--- a/drivers/net/bna/bnad.c
+++ b/drivers/net/bna/bnad.c
@@ -3230,7 +3230,7 @@ bnad_pci_remove(struct pci_dev *pdev)
free_netdev(netdev);
}
-static const struct pci_device_id bnad_pci_id_table[] = {
+static DEFINE_PCI_DEVICE_TABLE(bnad_pci_id_table) = {
{
PCI_DEVICE(PCI_VENDOR_ID_BROCADE,
PCI_DEVICE_ID_BROCADE_CT),
@@ -3253,7 +3253,7 @@ bnad_module_init(void)
{
int err;
- pr_info("Brocade 10G Ethernet driver\n");
+ pr_info("Brocade 10G Ethernet driver %s\n", BNAD_VERSION);
bfa_nw_ioc_auto_recover(bnad_ioc_auto_recover);
--
1.7.1
next prev parent reply other threads:[~2011-07-18 8:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 8:19 [PATCH 00/45] Update bna driver version to 3.0.2.0 Rasesh Mody
2011-07-18 8:19 ` [PATCH 01/45] bna: Checkpatch Cleanup Rasesh Mody
2011-07-18 8:19 ` [PATCH 02/45] bna: Update ASIC Register Definition to Support New Hardware Rasesh Mody
2011-07-18 8:19 ` [PATCH 03/45] bna: Change IOC Event Notification Call Back Mechanism Rasesh Mody
2011-07-18 8:19 ` [PATCH 04/45] bna: State Machine Fault Handling Cleanup Rasesh Mody
2011-07-18 8:19 ` [PATCH 05/45] bna: MSGQ Implementation Rasesh Mody
2011-07-18 8:19 ` Rasesh Mody [this message]
2011-07-18 8:19 ` [PATCH 07/45] bna: Introduce ENET as New Driver and FW Interface Rasesh Mody
2011-07-18 8:19 ` [PATCH 08/45] bna: Tx and Rx Redesign Rasesh Mody
2011-07-18 8:19 ` [PATCH 09/45] bna: ENET and Tx Rx Redesign Update Rasesh Mody
2011-07-18 8:19 ` [PATCH 10/45] bna: Remove Obsolete Files Rasesh Mody
2011-07-18 8:26 ` [PATCH 00/45] Update bna driver version to 3.0.2.0 David Miller
2011-07-19 0:48 ` Rasesh Mody
2011-07-19 1:58 ` David Miller
2011-07-19 22:53 ` Rasesh Mody
2011-07-19 23:24 ` David Miller
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=1310977178-312-7-git-send-email-rmody@brocade.com \
--to=rmody@brocade.com \
--cc=adapter_linux_open_src_team@brocade.com \
--cc=davem@davemloft.net \
--cc=dradovan@brocade.com \
--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;
as well as URLs for NNTP newsgroup(s).