net/davinci_emac: use devres APIs
commitb8092861efd827deb8d84292674704ee8bf41b04
authorSekhar Nori <nsekhar@ti.com>
Sun, 24 Mar 2013 23:25:46 +0000 (24 23:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Mar 2013 16:28:50 +0000 (26 12:28 -0400)
treed154701912b53a160deb82b6e53c0c812d94a676
parentdbbd136c7dbfe0fba989f337c35f976ef432d1d5
net/davinci_emac: use devres APIs

Use devres APIs where possible to simplify error handling
in driver probe.

While at it, also rename the goto targets in error path to
introduce some consistency in how they are named.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c