NTB: Print driver name and version in module init
authorDave Jiang <dave.jiang@intel.com>
Mon, 15 Jun 2015 12:21:33 +0000 (08:21 -0400)
committerJon Mason <jdmason@kudzu.us>
Sat, 4 Jul 2015 18:09:28 +0000 (14:09 -0400)
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>
drivers/ntb/hw/intel/ntb_hw_intel.c
drivers/ntb/ntb_transport.c

index eeaa1e8f8bd84d44d541b8c5c9beb800965fe15a..70924e5c0c72f3fcbad12a9e197aeb63243d46c0 100644 (file)
@@ -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);
 
index 1551493197b43eeef7efd10ca3b9de365e4f03c2..efe3ad4122f2ee1094da78c1bb31d86642b5b3a6 100644 (file)
@@ -1958,6 +1958,8 @@ static int __init ntb_transport_init(void)
 {
        int rc;
 
+       pr_info("%s, version %s\n", NTB_TRANSPORT_DESC, NTB_TRANSPORT_VER);
+
        if (debugfs_initialized())
                nt_debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);