[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210611080324.60008-1-dingsenjie@163.com>
Date: Fri, 11 Jun 2021 16:03:24 +0800
From: dingsenjie@....com
To: jk@...abs.org, joel@....id.au, alistair@...ple.id.au,
eajames@...ux.ibm.com
Cc: linux-fsi@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
dingsenjie <dingsenjie@...ong.com>
Subject: [PATCH] fsi: fsi-sbefifo: Use module_fsi_driver to simplify the code
From: dingsenjie <dingsenjie@...ong.com>
Simplify the code by using module_fsi_driver macro.
Signed-off-by: dingsenjie <dingsenjie@...ong.com>
---
drivers/fsi/fsi-sbefifo.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c
index bfd5e5d..4ada65aa 100644
--- a/drivers/fsi/fsi-sbefifo.c
+++ b/drivers/fsi/fsi-sbefifo.c
@@ -1046,18 +1046,7 @@ static int sbefifo_remove(struct device *dev)
}
};
-static int sbefifo_init(void)
-{
- return fsi_driver_register(&sbefifo_drv);
-}
-
-static void sbefifo_exit(void)
-{
- fsi_driver_unregister(&sbefifo_drv);
-}
-
-module_init(sbefifo_init);
-module_exit(sbefifo_exit);
+module_fsi_driver(sbefifo_drv);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Brad Bishop <bradleyb@...ziesquirrel.com>");
MODULE_AUTHOR("Eddie James <eajames@...ux.vnet.ibm.com>");
--
1.9.1
Powered by blists - more mailing lists