bus/dpaa: do nothing if bus not present
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 5 Dec 2018 22:02:30 +0000 (14:02 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Dec 2018 02:13:29 +0000 (03:13 +0100)
commitf18e18e0ccf7d3cb08042ad77074e1cbd070555d
tree8106f37643ea5c65644a9da21b7fffb5d80635d7
parent07938364f249d06c658b71911ee32679eeb453e3
bus/dpaa: do nothing if bus not present

The DPAA bus support code put out messages like:
dpaax: read_memory_node():  Unable to glob device-tree memory node:
(/proc/device-tree/memory[@0-9]*/reg)(3)
dpaax: PA->VA translation not available;
dpaax: Expect performance impact.

These are unnecessary and likely to confuse the end user.
Fix this by doing nothing if bus is empty.

Fixes: 5a7dbb934d75 ("dpaa: enable dpaax library")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/bus/dpaa/dpaa_bus.c