net: ethernet: stmmac: dwmac-generic: fix probe error path
authorJohan Hovold <johan@kernel.org>
Wed, 30 Nov 2016 14:29:52 +0000 (15:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 15:42:46 +0000 (10:42 -0500)
commit939b20022765bc338b0f72cbf1eed60a907398d7
tree577f70e200862f86d96404a44c6331151f558a26
parent2d222656db08b8eef3b53b56cf1ce4a90fe8cd78
net: ethernet: stmmac: dwmac-generic: fix probe error path

Make sure to call any exit() callback to undo the effect of init()
before returning on late probe errors.

Fixes: cf3f047b9af4 ("stmmac: move hw init in the probe (v2)")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c