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

Commit bbc48c6a authored by Jingoo Han's avatar Jingoo Han Committed by Samuel Ortiz
Browse files

mfd: ab3100-otp: 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>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 408a3fa8
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -248,19 +248,7 @@ static struct platform_driver ab3100_otp_driver = {
	.remove	 = __exit_p(ab3100_otp_remove),
};

static int __init ab3100_otp_init(void)
{
	return platform_driver_probe(&ab3100_otp_driver,
				     ab3100_otp_probe);
}

static void __exit ab3100_otp_exit(void)
{
	platform_driver_unregister(&ab3100_otp_driver);
}

module_init(ab3100_otp_init);
module_exit(ab3100_otp_exit);
module_platform_driver_probe(ab3100_otp_driver, ab3100_otp_probe);

MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>");
MODULE_DESCRIPTION("AB3100 OTP Readout Driver");