net: smsc911x: back out silently on probe deferrals
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Dec 2016 13:18:00 +0000 (14:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Dec 2016 04:05:16 +0000 (23:05 -0500)
commitab4e4c07aca7b33f8d00c5d6b083a564660ca8a5
tree5715298586d832ca3c47577df26681bb293bc9bc
parent7b5967389f5a8dfb9d32843830f5e2717e20995d
net: smsc911x: back out silently on probe deferrals

When trying to get a regulator we may get deferred and we see
this noise:

smsc911x 1b800000.ethernet-ebi2 (unnamed net_device) (uninitialized):
   couldn't get regulators -517

Then the driver continues anyway. Which means that the regulator
may not be properly retrieved and reference counted, and may be
switched off in case noone else is using it.

Fix this by returning silently on deferred probe and let the
system work it out.

Cc: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c