aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2012-10-10 14:39:59 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-11-15 08:37:48 -0500
commita90019e25e0caed04d3704235b5ea984aaa28da8 (patch)
tree777f0020eb32e0aa47dd0e95b1e2d5e9bb5b3d4b /drivers/mtd/devices
parent2f25ae97fe4b424d88d765797c46456c7c0f1bae (diff)
mtd: spear_smi: use module_platform_driver macro
This patch removes some code duplication by using module_platform_driver. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/spear_smi.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c
index dcc3c9511530..39e95673cdd2 100644
--- a/drivers/mtd/devices/spear_smi.c
+++ b/drivers/mtd/devices/spear_smi.c
@@ -1094,18 +1094,7 @@ static struct platform_driver spear_smi_driver = {
1094 .probe = spear_smi_probe, 1094 .probe = spear_smi_probe,
1095 .remove = __devexit_p(spear_smi_remove), 1095 .remove = __devexit_p(spear_smi_remove),
1096}; 1096};
1097 1097module_platform_driver(spear_smi_driver);
1098static int spear_smi_init(void)
1099{
1100 return platform_driver_register(&spear_smi_driver);
1101}
1102module_init(spear_smi_init);
1103
1104static void spear_smi_exit(void)
1105{
1106 platform_driver_unregister(&spear_smi_driver);
1107}
1108module_exit(spear_smi_exit);
1109 1098
1110MODULE_LICENSE("GPL"); 1099MODULE_LICENSE("GPL");
1111MODULE_AUTHOR("Ashish Priyadarshi, Shiraz Hashim <shiraz.hashim@st.com>"); 1100MODULE_AUTHOR("Ashish Priyadarshi, Shiraz Hashim <shiraz.hashim@st.com>");