]> 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)
commit424d4d118004677125cb721131cf8dba3ebd89da
tree81cb229bec7b0b18e66af3633f5ae4a6b35c1159
parentc446e2398d37cedc55be40107f8efbc64a221a24
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: dc37d05f9885 ("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