]> git.ipfire.org Git - thirdparty/linux.git/commit
mtd: rawnand: txx9ndfmc: Switch to module_platform_driver()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 2 Nov 2023 22:02:49 +0000 (23:02 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 13 Nov 2023 11:06:45 +0000 (12:06 +0100)
commit160c0b7f9a166d62a3aa32853883666eda896c58
treea65b11532330f562822895182aa1f0451aec0008
parent215283a1a4833f441778580359aea768642c56af
mtd: rawnand: txx9ndfmc: Switch to module_platform_driver()

While module_platform_driver_probe() offers the possibility to discard
.probe() and .remove() in some situations, the handling is difficult and
in today's systems the few hundred bytes that can be saved have little
importance. So convert the driver to be a normal driver that can be
bound and unbound at runtime as most other drivers, too.

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/20231102220246.3336154-8-u.kleine-koenig@pengutronix.de
drivers/mtd/nand/raw/txx9ndfmc.c