bcm63xx_enet: correct clock usage
authorJonas Gorski <jonas.gorski@gmail.com>
Sun, 1 Oct 2017 11:02:15 +0000 (13:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Oct 2017 06:05:10 +0000 (23:05 -0700)
commit9c86b846ce02f7e35d7234cf090b80553eba5389
tree7b8f954022804831b5e5dbe86c2176cf4878cd1d
parentb80ccfe9bbcac70e66fdfaef73f0988a27f9a68c
bcm63xx_enet: correct clock usage

Check the return code of prepare_enable and change one last instance of
enable only to prepare_enable. Also properly disable and release the
clock in error paths and on remove for enetsw.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcm63xx_enet.c