]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: bfin_mac: Use platform_register/unregister_drivers()
authorThierry Reding <treding@nvidia.com>
Wed, 2 Dec 2015 16:30:26 +0000 (17:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 20:14:58 +0000 (15:14 -0500)
commit36b9ddd53587537ee9584f43a2713474000346cd
treed3189035fbfc218872f171639dc60d0fd6a2c29a
parent681b4d88ad8e5b67c34f4d0a40448efb94e2b227
net: bfin_mac: Use platform_register/unregister_drivers()

These new helpers simplify implementing multi-driver modules and
properly handle failure to register one driver by unregistering all
previously registered drivers.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/adi/bfin_mac.c