linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fsi: fsi-sbefifo: Use module_fsi_driver to simplify the code
@ 2021-06-11  8:03 dingsenjie
  0 siblings, 0 replies; only message in thread
From: dingsenjie @ 2021-06-11  8:03 UTC (permalink / raw)
  To: jk, joel, alistair, eajames; +Cc: linux-fsi, linux-kernel, dingsenjie

From: dingsenjie <dingsenjie@yulong.com>

Simplify the code by using module_fsi_driver macro.

Signed-off-by: dingsenjie <dingsenjie@yulong.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@fuzziesquirrel.com>");
 MODULE_AUTHOR("Eddie James <eajames@linux.vnet.ibm.com>");
-- 
1.9.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-11  8:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11  8:03 [PATCH] fsi: fsi-sbefifo: Use module_fsi_driver to simplify the code dingsenjie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).