]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit401d99757c90c9dd0278b8f0b14708fa7e9069c2
tree5715298586d832ca3c47577df26681bb293bc9bc
parent3827ef45ff8a8d7c10993172a5180a20b14e4b4a
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