Commit 9606cda3 authored by Yang Yingliang's avatar Yang Yingliang Committed by Mark Brown

ASoC: ti: davinci-evm: simplify the code with module_platform_driver

The init/exit() of driver only calls platform_driver_register/unregister,
it can be simpilfied with module_platform_driver.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230804085402.1328033-1-yangyingliang@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 422f10ad
......@@ -257,18 +257,7 @@ static struct platform_driver davinci_evm_driver = {
},
};
static int __init evm_init(void)
{
return platform_driver_register(&davinci_evm_driver);
}
static void __exit evm_exit(void)
{
platform_driver_unregister(&davinci_evm_driver);
}
module_init(evm_init);
module_exit(evm_exit);
module_platform_driver(davinci_evm_driver);
MODULE_AUTHOR("Vladimir Barinov");
MODULE_DESCRIPTION("TI DAVINCI EVM ASoC driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment