From: Dave Jiang Date: Mon, 15 Jun 2015 12:21:33 +0000 (-0400) Subject: NTB: Print driver name and version in module init X-Git-Tag: v5.15~15466^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7eb387813db6730a5793cd53077b4039d948d17f;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jon Mason --- diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c b/drivers/ntb/hw/intel/ntb_hw_intel.c index eeaa1e8f8bd8..70924e5c0c72 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); diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index 1551493197b4..efe3ad4122f2 100644 --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c @@ -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);