Skip to content

Commit 98bf7c0

Browse files
dtorLiam Girdwood
authored andcommitted
Regulators: ab3100 - fix probe and remove annotations
Probe and remove methods should not be marked as __init/__exit but rather __devinit/__devexit so that the needed sections stay in memory in presence of CONFIG_HOTPLUG. This is needed even on non hotpluggable buses. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
1 parent 4cf9566 commit 98bf7c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/regulator/ab3100.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ ab3100_regulator_desc[AB3100_NUM_REGULATORS] = {
561561
* for all the different regulators.
562562
*/
563563

564-
static int __init ab3100_regulators_probe(struct platform_device *pdev)
564+
static int __devinit ab3100_regulators_probe(struct platform_device *pdev)
565565
{
566566
struct ab3100_platform_data *plfdata = pdev->dev.platform_data;
567567
struct ab3100 *ab3100 = platform_get_drvdata(pdev);
@@ -641,7 +641,7 @@ static int __init ab3100_regulators_probe(struct platform_device *pdev)
641641
return 0;
642642
}
643643

644-
static int __exit ab3100_regulators_remove(struct platform_device *pdev)
644+
static int __devexit ab3100_regulators_remove(struct platform_device *pdev)
645645
{
646646
int i;
647647

@@ -659,7 +659,7 @@ static struct platform_driver ab3100_regulators_driver = {
659659
.owner = THIS_MODULE,
660660
},
661661
.probe = ab3100_regulators_probe,
662-
.remove = __exit_p(ab3100_regulators_remove),
662+
.remove = __devexit_p(ab3100_regulators_remove),
663663
};
664664

665665
static __init int ab3100_regulators_init(void)

0 commit comments

Comments
 (0)