mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 05:11:32 +00:00
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>
This commit is contained in:
parent
9891417de8
commit
7eb387813d
@ -2012,6 +2012,8 @@ static int intel_ntb_pci_probe(struct pci_dev *pdev,
|
|||||||
if (rc)
|
if (rc)
|
||||||
goto err_register;
|
goto err_register;
|
||||||
|
|
||||||
|
dev_info(&pdev->dev, "NTB device registered.\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_register:
|
err_register:
|
||||||
@ -2192,6 +2194,8 @@ static struct pci_driver intel_ntb_pci_driver = {
|
|||||||
|
|
||||||
static int __init intel_ntb_pci_driver_init(void)
|
static int __init intel_ntb_pci_driver_init(void)
|
||||||
{
|
{
|
||||||
|
pr_info("%s %s\n", NTB_DESC, NTB_VER);
|
||||||
|
|
||||||
if (debugfs_initialized())
|
if (debugfs_initialized())
|
||||||
debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
|
debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
|
||||||
|
|
||||||
|
@ -1958,6 +1958,8 @@ static int __init ntb_transport_init(void)
|
|||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
pr_info("%s, version %s\n", NTB_TRANSPORT_DESC, NTB_TRANSPORT_VER);
|
||||||
|
|
||||||
if (debugfs_initialized())
|
if (debugfs_initialized())
|
||||||
nt_debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
|
nt_debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user