From: Liam Girdwood Date: Tue, 19 May 2009 10:44:37 +0000 (+0100) Subject: regulator: lp3971 - fix driver link error when built-in. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6113c3a5a63b8f0d5613b2a71cd1f5335a37b89a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git regulator: lp3971 - fix driver link error when built-in. lp3971_i2c_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c index 35abebea4ed5..a61018a27698 100644 --- a/drivers/regulator/lp3971.c +++ b/drivers/regulator/lp3971.c @@ -535,7 +535,7 @@ static struct i2c_driver lp3971_i2c_driver = { .owner = THIS_MODULE, }, .probe = lp3971_i2c_probe, - .remove = lp3971_i2c_remove, + .remove = __devexit_p(lp3971_i2c_remove), .id_table = lp3971_i2c_id, };