net: dsa: b53: Utilize mdio_module_driver
Eliminate a bit of boilerplate code. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b70f43a161
commit
8a180cc79d
@ -375,18 +375,7 @@ static struct mdio_driver b53_mdio_driver = {
|
|||||||
.of_match_table = b53_of_match,
|
.of_match_table = b53_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
mdio_module_driver(b53_mdio_driver);
|
||||||
static int __init b53_mdio_driver_register(void)
|
|
||||||
{
|
|
||||||
return mdio_driver_register(&b53_mdio_driver);
|
|
||||||
}
|
|
||||||
module_init(b53_mdio_driver_register);
|
|
||||||
|
|
||||||
static void __exit b53_mdio_driver_unregister(void)
|
|
||||||
{
|
|
||||||
mdio_driver_unregister(&b53_mdio_driver);
|
|
||||||
}
|
|
||||||
module_exit(b53_mdio_driver_unregister);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("B53 MDIO access driver");
|
MODULE_DESCRIPTION("B53 MDIO access driver");
|
||||||
MODULE_LICENSE("Dual BSD/GPL");
|
MODULE_LICENSE("Dual BSD/GPL");
|
||||||
|
Loading…
Reference in New Issue
Block a user