summaryrefslogtreecommitdiffstats
path: root/drivers/ntb/hw
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2015-06-15 08:21:33 -0400
committerJon Mason <jdmason@kudzu.us>2015-07-04 14:09:28 -0400
commit7eb387813db6730a5793cd53077b4039d948d17f (patch)
treeee04a4ac5b3c65661a61137a2b20fe317b0f0b43 /drivers/ntb/hw
parent9891417de8a816de60faea8a2ff7a04c4b3cf3a1 (diff)
downloadop-kernel-dev-7eb387813db6730a5793cd53077b4039d948d17f.zip
op-kernel-dev-7eb387813db6730a5793cd53077b4039d948d17f.tar.gz
NTB: Print driver name and version in module init
Printouts driver name and version to indicate what is being loaded. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/hw')
-rw-r--r--drivers/ntb/hw/intel/ntb_hw_intel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c b/drivers/ntb/hw/intel/ntb_hw_intel.c
index eeaa1e8..70924e5 100644
--- a/drivers/ntb/hw/intel/ntb_hw_intel.c
+++ b/drivers/ntb/hw/intel/ntb_hw_intel.c
@@ -2012,6 +2012,8 @@ static int intel_ntb_pci_probe(struct pci_dev *pdev,
if (rc)
goto err_register;
+ dev_info(&pdev->dev, "NTB device registered.\n");
+
return 0;
err_register:
@@ -2192,6 +2194,8 @@ static struct pci_driver intel_ntb_pci_driver = {
static int __init intel_ntb_pci_driver_init(void)
{
+ pr_info("%s %s\n", NTB_DESC, NTB_VER);
+
if (debugfs_initialized())
debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
OpenPOWER on IntegriCloud