net: phy: realtek: register/unregister multiple drivers properly
authorJongsung Kim <neidhard.kim@lge.com>
Tue, 10 Jun 2014 03:50:12 +0000 (12:50 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:17:27 +0000 (15:17 -0700)
commit71b9c4a8388f596b603a72c32404b39fe0f62588
tree92a7a6a1f8d102255a503873a002d8a35c0c4b6e
parent1b72a0fc9c308d9f3255c177945cf383c3c82b0e
net: phy: realtek: register/unregister multiple drivers properly

Using phy_drivers_register/_unregister functions is proper way to
handle multiple PHY drivers registration. For Realtek PHY drivers
module, it fixes incomplete current error-handlings up and adds
missed unregistration for the RTL8201CP driver.

Signed-off-by: Jongsung Kim <neidhard.kim@lge.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c