]> 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)
commit1794209d07adcf5b9da7a1f51050e00bb76fde61
tree5715298586d832ca3c47577df26681bb293bc9bc
parent810b9167cee5fc5d9e6b216f1c061811919eeaad
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