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

Commit 0c759482 authored by Jingoo Han's avatar Jingoo Han Committed by Greg Kroah-Hartman
Browse files

misc: arm-charlcd: use module_platform_driver_probe()



This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9f7345b7
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -378,18 +378,7 @@ static struct platform_driver charlcd_driver = {
	.remove = __exit_p(charlcd_remove),
};

static int __init charlcd_init(void)
{
	return platform_driver_probe(&charlcd_driver, charlcd_probe);
}

static void __exit charlcd_exit(void)
{
	platform_driver_unregister(&charlcd_driver);
}

module_init(charlcd_init);
module_exit(charlcd_exit);
module_platform_driver_probe(charlcd_driver, charlcd_probe);

MODULE_AUTHOR("Linus Walleij <triad@df.lth.se>");
MODULE_DESCRIPTION("ARM Character LCD Driver");