bus/fslmc: do not log messages if bus not present
A typical distribution will compile with default config and all buses enabled. Therefore every driver should be silent and not log anything for this normal case. This patch gets rid of these messages when running on basic x86 environment such as bare metal or VM. fslmc: DPAA2: DPRC not available fslmc: FSLMC Bus Not Available. Skipping Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
06bfd1cbb4
commit
733daffa98
@ -255,7 +255,7 @@ scan_fail_cleanup:
|
||||
/* Remove all devices in the list */
|
||||
cleanup_fslmc_device_list();
|
||||
scan_fail:
|
||||
DPAA2_BUS_INFO("FSLMC Bus Not Available. Skipping");
|
||||
DPAA2_BUS_DEBUG("FSLMC Bus Not Available. Skipping");
|
||||
/* Irrespective of failure, scan only return success */
|
||||
return 0;
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ fslmc_get_container_group(int *groupid)
|
||||
if (!g_container) {
|
||||
container = getenv("DPRC");
|
||||
if (container == NULL) {
|
||||
DPAA2_BUS_INFO("DPAA2: DPRC not available");
|
||||
DPAA2_BUS_DEBUG("DPAA2: DPRC not available");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user