sh_eth: exit probe with unknown register layout
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 15 Mar 2014 00:11:24 +0000 (03:11 +0300)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:27 +0000 (09:21 +0900)
commitb5c1b77f647f2b193d9a1236485a9f23e744698a
treecbba723c8b6ab2b54c698c32b7dd42830c2aa764
parent1e65950f5276e0407c95c0a9073a3c8d66d3cb76
sh_eth: exit probe with unknown register layout

Exit the driver's probe() method when the register layout is unknown as the
driver would cause kernel oops in this case anyway.

While at it, move the corresponding error message printout and convert it from
pr_err() to dev_err().

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 264be2f5a973cc85be3e31d6bf6234b55a256627)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/net/ethernet/renesas/sh_eth.c