]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: Do not print an error message for probe deferral
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 18 May 2017 13:01:35 +0000 (15:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 15:21:07 +0000 (11:21 -0400)
commit4963b7b3249e9c5cbede4dab7e5f377923fc17cf
tree66a32fe9da54d9d02d57aee68df43124ed0c04bb
parent1ee0437df9099aae2e1ba00c9893079ca85efe9b
sh_eth: Do not print an error message for probe deferral

EPROBE_DEFER is not an error, hence printing an error message like

    sh-eth ee700000.ethernet: failed to initialise MDIO

may confuse the user.

To fix this, suppress the error message in case of probe deferral.
While at it, shorten the message, and add the actual error code.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c