Commit a90019e2 authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Artem Bityutskiy

mtd: spear_smi: use module_platform_driver macro

This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 2f25ae97
...@@ -1094,18 +1094,7 @@ static struct platform_driver spear_smi_driver = { ...@@ -1094,18 +1094,7 @@ static struct platform_driver spear_smi_driver = {
.probe = spear_smi_probe, .probe = spear_smi_probe,
.remove = __devexit_p(spear_smi_remove), .remove = __devexit_p(spear_smi_remove),
}; };
module_platform_driver(spear_smi_driver);
static int spear_smi_init(void)
{
return platform_driver_register(&spear_smi_driver);
}
module_init(spear_smi_init);
static void spear_smi_exit(void)
{
platform_driver_unregister(&spear_smi_driver);
}
module_exit(spear_smi_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Ashish Priyadarshi, Shiraz Hashim <shiraz.hashim@st.com>"); MODULE_AUTHOR("Ashish Priyadarshi, Shiraz Hashim <shiraz.hashim@st.com>");
......
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