The fjes driver is used only by FUJITSU servers and almost of all servers in the world never use it. But currently if ACPI PNP0C02 is defined in the ACPI table, the following message is always shown:
"FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED" The message makes users confused because there is no reason that the message is shown in other vendor servers. To avoid the confusion, the patch moves the message into fjes_acpi_add() so that it is shows only when fjes_acpi_add() succeeded. Signed-off-by: Yasuaki Ishimatsu <isimatu.yasu...@jp.fujitsu.com> CC: Taku Izumi <izumi.t...@jp.fujitsu.com> --- drivers/net/fjes/fjes_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/fjes/fjes_main.c b/drivers/net/fjes/fjes_main.c index b77e4ecf..8e1329c 100644 --- a/drivers/net/fjes/fjes_main.c +++ b/drivers/net/fjes/fjes_main.c @@ -151,6 +151,9 @@ static int fjes_acpi_add(struct acpi_device *device) ARRAY_SIZE(fjes_resource)); device->driver_data = plat_dev; + pr_info("%s - version %s - %s\n", + fjes_driver_string, fjes_driver_version, fjes_copyright); + return 0; } @@ -1481,9 +1484,6 @@ static int __init fjes_init_module(void) { int result; - pr_info("%s - version %s - %s\n", - fjes_driver_string, fjes_driver_version, fjes_copyright); - fjes_dbg_init(); result = platform_driver_register(&fjes_driver); -- 1.8.3.1