]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: cleanup probed ports in the probe error path
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Tue, 28 Nov 2017 13:19:49 +0000 (14:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 15:09:50 +0000 (10:09 -0500)
commit6c0d6a58d67e1ded38aadad7b26ac1dbf5c9599d
tree81cb229bec7b0b18e66af3633f5ae4a6b35c1159
parent657c97330c3b919ed20d0c6ef1174d2072129aa3
net: mvpp2: cleanup probed ports in the probe error path

This patches fixes the probe error path by cleaning up probed ports, to
avoid leaving registered net devices when the driver failed to probe.

Fixes: decc8a74c68c ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c