Skip to content

Commit

Permalink
NTB: Print driver name and version in module init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Jiang authored and Jon Mason committed Jul 4, 2015
1 parent 9891417 commit 7eb3878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/ntb/hw/intel/ntb_hw_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 2 additions & 0 deletions drivers/ntb/ntb_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7eb3878

Please sign in to comment.