Date:2010-05-09 01:31:06 (10 years 2 months ago)
Author:Lars C.
Commit:8e1c092fd98d6cbf6ac5a460ce913b31a4e830a5
Message:jz4740-battery: probe and remove function should be in __dev{init,exit} sections.

Files: drivers/power/jz4740-battery.c (2 diffs)

Change Details

drivers/power/jz4740-battery.c
200200    schedule_delayed_work(&jz_battery->work, interval);
201201}
202202
203static int jz_battery_probe(struct platform_device *pdev)
203static int __devinit jz_battery_probe(struct platform_device *pdev)
204204{
205205    int ret = 0;
206206    struct jz_battery_platform_data *pdata = pdev->dev.platform_data;
...... 
283283    return ret;
284284}
285285
286static int jz_battery_remove(struct platform_device *pdev)
286static int __devexit jz_battery_remove(struct platform_device *pdev)
287287{
288288    struct jz_battery *jz_battery = platform_get_drvdata(pdev);
289289

Archive Download the corresponding diff file



interactive