]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit681d2421e1135b95f5cd9d16fe10eac7f570a9f2
tree69a50affab4bd3624ad3818d8093e8ef518202bf
parentb3a00c912cdf8efe985a08018fe26f362b32c1ac
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