net: ethernet: cpsw: switch to devres allocations
authorDaniel Mack <zonque@gmail.com>
Fri, 20 Sep 2013 19:20:38 +0000 (00:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Sep 2013 14:33:07 +0000 (10:33 -0400)
commitaa1a15e2d9199711cdcc9399fdb22544ab835a83
treef12ddc541a0ffc25eb3b60fb1fb04f341c3ed0ec
parent44da5c2f523876a02336c18dbcce93449fdbf0ca
net: ethernet: cpsw: switch to devres allocations

This patch cleans up the allocation and error unwind paths, which
allows us to carry less information in struct cpsw_priv and reduce the
amount of jump labels in the probe functions.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c