[PATCH] fsi: fsi-scom: Use module_fsi_driver to simplify the code

From: dingsenjie
Date: Fri Jun 11 2021 - 03:54:48 EST


From: dingsenjie <dingsenjie@xxxxxxxxxx>

Simplify the code by using module_fsi_driver macro.

Signed-off-by: dingsenjie <dingsenjie@xxxxxxxxxx>
---
drivers/fsi/fsi-scom.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/fsi/fsi-scom.c b/drivers/fsi/fsi-scom.c
index b45bfab..91bb413 100644
--- a/drivers/fsi/fsi-scom.c
+++ b/drivers/fsi/fsi-scom.c
@@ -645,16 +645,5 @@ static int scom_remove(struct device *dev)
}
};

-static int scom_init(void)
-{
- return fsi_driver_register(&scom_drv);
-}
-
-static void scom_exit(void)
-{
- fsi_driver_unregister(&scom_drv);
-}
-
-module_init(scom_init);
-module_exit(scom_exit);
+module_fsi_driver(scom_drv);
MODULE_LICENSE("GPL");
--
1.9.1