Skip to content

Commit

Permalink
regulator: da903x: add missing __devexit_p()
Browse files Browse the repository at this point in the history
The remove function uses __devexit, so the .remove assignment needs
__devexit_p() to fix a build error with hotplug disabled.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CC: Liam Girdwood <lrg@slimlogic.co.uk>
CC: Mike Rapoport <mike@compulab.co.il>
CC: Eric Miao <eric.miao@marvell.com>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Mike Frysinger authored and Liam Girdwood committed May 18, 2009
1 parent 45d4474 commit 5b4662f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ static struct platform_driver da903x_regulator_driver = {
.owner = THIS_MODULE,
},
.probe = da903x_regulator_probe,
.remove = da903x_regulator_remove,
.remove = __devexit_p(da903x_regulator_remove),
};

static int __init da903x_regulator_init(void)
Expand Down

0 comments on commit 5b4662f

Please sign in to comment.