Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a4541a6 authored by Fabio Porcedda's avatar Fabio Porcedda Committed by Greg Kroah-Hartman
Browse files

drivers: memory: use module_platform_driver_probe()



This patch converts the drivers to use the
module_platform_driver_probe() macro which makes the code smaller and
a bit simpler.

Signed-off-by: default avatarFabio Porcedda <fabio.porcedda@gmail.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Aneesh V <aneesh@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 61084d99
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -1841,18 +1841,8 @@ static struct platform_driver emif_driver = {
	},
};

static int __init_or_module emif_register(void)
{
	return platform_driver_probe(&emif_driver, emif_probe);
}

static void __exit emif_unregister(void)
{
	platform_driver_unregister(&emif_driver);
}
module_platform_driver_probe(emif_driver, emif_probe);

module_init(emif_register);
module_exit(emif_unregister);
MODULE_DESCRIPTION("TI EMIF SDRAM Controller Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:emif");