]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite70b1ce9b57710aba0953917b6abd85e7881209b
treef12ddc541a0ffc25eb3b60fb1fb04f341c3ed0ec
parentf3d8a73dc4e78abe36c37e4abb2eee3c3ff7d0d5
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