diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-10 14:39:59 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-15 08:37:48 -0500 |
commit | a90019e25e0caed04d3704235b5ea984aaa28da8 (patch) | |
tree | 777f0020eb32e0aa47dd0e95b1e2d5e9bb5b3d4b /drivers/mtd/devices | |
parent | 2f25ae97fe4b424d88d765797c46456c7c0f1bae (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.c | 13 |
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 | 1097 | module_platform_driver(spear_smi_driver); | |
1098 | static int spear_smi_init(void) | ||
1099 | { | ||
1100 | return platform_driver_register(&spear_smi_driver); | ||
1101 | } | ||
1102 | module_init(spear_smi_init); | ||
1103 | |||
1104 | static void spear_smi_exit(void) | ||
1105 | { | ||
1106 | platform_driver_unregister(&spear_smi_driver); | ||
1107 | } | ||
1108 | module_exit(spear_smi_exit); | ||
1109 | 1098 | ||
1110 | MODULE_LICENSE("GPL"); | 1099 | MODULE_LICENSE("GPL"); |
1111 | MODULE_AUTHOR("Ashish Priyadarshi, Shiraz Hashim <shiraz.hashim@st.com>"); | 1100 | MODULE_AUTHOR("Ashish Priyadarshi, Shiraz Hashim <shiraz.hashim@st.com>"); |