Skip to content

Commit a084ab3

Browse files
Wei Yongjundavem330
authored andcommitted
net: dsa: qca8k: use mdio_module_driver to simplify the code
mdio_module_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fcfbfd6 commit a084ab3

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

drivers/net/dsa/qca8k.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,19 +1032,7 @@ static struct mdio_driver qca8kmdio_driver = {
10321032
},
10331033
};
10341034

1035-
static int __init
1036-
qca8kmdio_driver_register(void)
1037-
{
1038-
return mdio_driver_register(&qca8kmdio_driver);
1039-
}
1040-
module_init(qca8kmdio_driver_register);
1041-
1042-
static void __exit
1043-
qca8kmdio_driver_unregister(void)
1044-
{
1045-
mdio_driver_unregister(&qca8kmdio_driver);
1046-
}
1047-
module_exit(qca8kmdio_driver_unregister);
1035+
mdio_module_driver(qca8kmdio_driver);
10481036

10491037
MODULE_AUTHOR("Mathieu Olivari, John Crispin <[email protected]>");
10501038
MODULE_DESCRIPTION("Driver for QCA8K ethernet switch family");

0 commit comments

Comments
 (0)