]> git.baikalelectronics.ru Git - kernel.git/commit
fec: Fix fec_enet_alloc_buffers() error path
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 4 Oct 2014 16:40:01 +0000 (13:40 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 04:53:56 +0000 (00:53 -0400)
commite2492be9cb5eb19848e173f3e3c2ad0dae8f7f73
tree69a50affab4bd3624ad3818d8093e8ef518202bf
parent0d83f6cc14da9ff0aaf865edda3b9f48ead1bcf7
fec: Fix fec_enet_alloc_buffers() error path

When fec_enet_alloc_buffers() fails we should better undo the previous actions,
which consists of: disabling the FEC clocks and putting the FEC pins into
inactive state.

The error path for fec_enet_mii_probe() is kept unchanged.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c