Commit 3de764d4aa40109806cf7f9a9d811b970ff49374
Committed by
Samuel Ortiz
1 parent
e8fe6a8279
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
mfd: davinci_voicecodec: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Showing 1 changed file with 1 additions and 11 deletions Side-by-side Diff
drivers/mfd/davinci_voicecodec.c
... | ... | @@ -177,17 +177,7 @@ |
177 | 177 | .remove = davinci_vc_remove, |
178 | 178 | }; |
179 | 179 | |
180 | -static int __init davinci_vc_init(void) | |
181 | -{ | |
182 | - return platform_driver_probe(&davinci_vc_driver, davinci_vc_probe); | |
183 | -} | |
184 | -module_init(davinci_vc_init); | |
185 | - | |
186 | -static void __exit davinci_vc_exit(void) | |
187 | -{ | |
188 | - platform_driver_unregister(&davinci_vc_driver); | |
189 | -} | |
190 | -module_exit(davinci_vc_exit); | |
180 | +module_platform_driver_probe(davinci_vc_driver, davinci_vc_probe); | |
191 | 181 | |
192 | 182 | MODULE_AUTHOR("Miguel Aguilar"); |
193 | 183 | MODULE_DESCRIPTION("Texas Instruments DaVinci Voice Codec Core Interface"); |