aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/pcf50633-adc.c
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/mfd/pcf50633-adc.c
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'drivers/mfd/pcf50633-adc.c')
-rw-r--r--drivers/mfd/pcf50633-adc.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/mfd/pcf50633-adc.c b/drivers/mfd/pcf50633-adc.c
index 18b53cb72fe..aed0d2a9b03 100644
--- a/drivers/mfd/pcf50633-adc.c
+++ b/drivers/mfd/pcf50633-adc.c
@@ -199,7 +199,7 @@ static void pcf50633_adc_irq(int irq, void *data)
199 kfree(req); 199 kfree(req);
200} 200}
201 201
202static int pcf50633_adc_probe(struct platform_device *pdev) 202static int __devinit pcf50633_adc_probe(struct platform_device *pdev)
203{ 203{
204 struct pcf50633_adc *adc; 204 struct pcf50633_adc *adc;
205 205
@@ -218,7 +218,7 @@ static int pcf50633_adc_probe(struct platform_device *pdev)
218 return 0; 218 return 0;
219} 219}
220 220
221static int pcf50633_adc_remove(struct platform_device *pdev) 221static int __devexit pcf50633_adc_remove(struct platform_device *pdev)
222{ 222{
223 struct pcf50633_adc *adc = platform_get_drvdata(pdev); 223 struct pcf50633_adc *adc = platform_get_drvdata(pdev);
224 int i, head; 224 int i, head;
@@ -246,10 +246,20 @@ static struct platform_driver pcf50633_adc_driver = {
246 .name = "pcf50633-adc", 246 .name = "pcf50633-adc",
247 }, 247 },
248 .probe = pcf50633_adc_probe, 248 .probe = pcf50633_adc_probe,
249 .remove = pcf50633_adc_remove, 249 .remove = __devexit_p(pcf50633_adc_remove),
250}; 250};
251 251
252module_platform_driver(pcf50633_adc_driver); 252static int __init pcf50633_adc_init(void)
253{
254 return platform_driver_register(&pcf50633_adc_driver);
255}
256module_init(pcf50633_adc_init);
257
258static void __exit pcf50633_adc_exit(void)
259{
260 platform_driver_unregister(&pcf50633_adc_driver);
261}
262module_exit(pcf50633_adc_exit);
253 263
254MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>"); 264MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>");
255MODULE_DESCRIPTION("PCF50633 adc driver"); 265MODULE_DESCRIPTION("PCF50633 adc driver");