staging: fsl-dpaa2/eth: Defer probing if no MC portal available
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Tue, 20 Mar 2018 12:04:46 +0000 (07:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 17:15:34 +0000 (18:15 +0100)
commit8c3696102f3e76e2ebdd981b6b2ac1de004e1aef
tree83462101be7038bdf2bedab5dd1d6ea166ea4245
parentd59578da2bb8d69266351a399c377fc4bf4265b7
staging: fsl-dpaa2/eth: Defer probing if no MC portal available

MC portals may not be available at the initial probing attempt
due to dependencies on other modules.

Check the return value of the MC portal allocation function and
defer probing in case it's not available yet. For all other error
cases the behaviour stays the same.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Suggested-by: Nipun Gupta <nipun.gupta@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c