mtd: rawnand: sh_flctl: Convert to module_platform_driver()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 16 Oct 2023 10:35:41 +0000 (12:35 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 27 Oct 2023 17:43:16 +0000 (19:43 +0200)
commit60ec53ace2cb8a6f5678af1ea614f8582e32c081
treec8b34bfe2ad39e2446bfb0a96dd3ad9a667fa657
parent6dc597401cf56af6dd9e12d74664aee3121f1216
mtd: rawnand: sh_flctl: Convert to module_platform_driver()

The driver doesn't benefit from the advantages that
module_platform_driver_probe() allows (i.e. putting the probe function
in .init.text and the .remove function into .exit.text).
So use module_platform_driver() instead which allows to bind the driver
also after booting (or module loading) and unbinding via sysfs.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231016103540.1566865-2-u.kleine-koenig@pengutronix.de
drivers/mtd/nand/raw/sh_flctl.c