diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-12-01 03:21:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-02 00:36:32 +0300 |
commit | 1971ab587bb087905ff94a079184b0608d0075ff (patch) | |
tree | cfb1a0ee3d565f521e7717353816575d9f13c716 /drivers/net/ethernet/ti/cpsw_ale.h | |
parent | fb1a732dd5191e98a34fd99ecdf0f23824d2a673 (diff) | |
download | linux-1971ab587bb087905ff94a079184b0608d0075ff.tar.xz |
net: ethernet: ti: ale: use devm_kzalloc in cpsw_ale_create()
Use cpsw_ale_create in cpsw_ale_create(). This also makes
cpsw_ale_destroy() function nop, so remove it.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/cpsw_ale.h')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw_ale.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/cpsw_ale.h b/drivers/net/ethernet/ti/cpsw_ale.h index 25d24e8d0904..d4fe9016429b 100644 --- a/drivers/net/ethernet/ti/cpsw_ale.h +++ b/drivers/net/ethernet/ti/cpsw_ale.h @@ -100,7 +100,6 @@ enum cpsw_ale_port_state { #define ALE_ENTRY_WORDS DIV_ROUND_UP(ALE_ENTRY_BITS, 32) struct cpsw_ale *cpsw_ale_create(struct cpsw_ale_params *params); -int cpsw_ale_destroy(struct cpsw_ale *ale); void cpsw_ale_start(struct cpsw_ale *ale); void cpsw_ale_stop(struct cpsw_ale *ale); |