diff options
Diffstat (limited to 'drivers/net/wan/fsl_ucc_hdlc.c')
-rw-r--r-- | drivers/net/wan/fsl_ucc_hdlc.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index b3861bf93899..2fc50ec453d0 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -1168,22 +1168,10 @@ static struct platform_driver ucc_hdlc_driver = { .probe = ucc_hdlc_probe, .remove = ucc_hdlc_remove, .driver = { - .owner = THIS_MODULE, .name = DRV_NAME, .pm = HDLC_PM_OPS, .of_match_table = fsl_ucc_hdlc_of_match, }, }; -static int __init ucc_hdlc_init(void) -{ - return platform_driver_register(&ucc_hdlc_driver); -} - -static void __exit ucc_hdlc_exit(void) -{ - platform_driver_unregister(&ucc_hdlc_driver); -} - -module_init(ucc_hdlc_init); -module_exit(ucc_hdlc_exit); +module_platform_driver(ucc_hdlc_driver); |