commit | 8a8a9e89f801ce5d3d1d57ac48db678caf072147 | [log] [tgz] |
---|---|---|
author | Sean Wang <sean.wang@mediatek.com> | Wed Sep 14 23:13:17 2016 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Sep 16 02:22:57 2016 -0400 |
tree | 33043ea75cbd84f7b5fa393242b3d64b23eb4bf1 | |
parent | bf253fb72221cdd9dc31009056f269a420f7bbd9 [diff] |
net: ethernet: mediatek: cleanup error path inside mtk_hw_init This cleans up the error path inside mtk_hw_init call, causing it able to exit appropriately when something fails and also includes refactoring mtk_cleanup call to make the partial logic reusable on the error path. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>