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)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:16 +0000 (11:13 +0100)
commite4717b09521bc12595e646a064e02781cce4feaf
treea7d83b97dbe171e197bec30efe47f9fb28c504cc
parent7499a66a85a7488e727b9daafa0d1da15f797c48
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