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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2014 20:05:18 +0000 (16:05 -0400)
commit264be2f5a973cc85be3e31d6bf6234b55a256627
tree65061d23535d14dd31b1c31e549d2949c0b7961f
parent7c169445fc32316d046aaf1aa9bd54c62c963585
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>
drivers/net/ethernet/renesas/sh_eth.c