diff options
Diffstat (limited to 'drivers/regulator/pcap-regulator.c')
-rw-r--r-- | drivers/regulator/pcap-regulator.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/regulator/pcap-regulator.c b/drivers/regulator/pcap-regulator.c index 33d7d899e030..29d0566379ae 100644 --- a/drivers/regulator/pcap-regulator.c +++ b/drivers/regulator/pcap-regulator.c | |||
@@ -288,16 +288,18 @@ static int __devexit pcap_regulator_remove(struct platform_device *pdev) | |||
288 | struct regulator_dev *rdev = platform_get_drvdata(pdev); | 288 | struct regulator_dev *rdev = platform_get_drvdata(pdev); |
289 | 289 | ||
290 | regulator_unregister(rdev); | 290 | regulator_unregister(rdev); |
291 | platform_set_drvdata(pdev, NULL); | ||
291 | 292 | ||
292 | return 0; | 293 | return 0; |
293 | } | 294 | } |
294 | 295 | ||
295 | static struct platform_driver pcap_regulator_driver = { | 296 | static struct platform_driver pcap_regulator_driver = { |
296 | .driver = { | 297 | .driver = { |
297 | .name = "pcap-regulator", | 298 | .name = "pcap-regulator", |
299 | .owner = THIS_MODULE, | ||
298 | }, | 300 | }, |
299 | .probe = pcap_regulator_probe, | 301 | .probe = pcap_regulator_probe, |
300 | .remove = __devexit_p(pcap_regulator_remove), | 302 | .remove = __devexit_p(pcap_regulator_remove), |
301 | }; | 303 | }; |
302 | 304 | ||
303 | static int __init pcap_regulator_init(void) | 305 | static int __init pcap_regulator_init(void) |