linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: anatop: Use correct __devexit_p annotation
@ 2012-05-23  1:08 Axel Lin
  2012-05-23 10:19 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-05-23  1:08 UTC (permalink / raw)
  To: linux-kernel
  Cc: Nancy Chen, Ying-Chun Liu (PaulLiu), Liam Girdwood, Mark Brown

__devexit functions are discarded when CONFIG_HOTPLUG
is not set, so the symbol needs to be referenced carefully.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/regulator/anatop-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c
index 49b2112..8fbb6b6 100644
--- a/drivers/regulator/anatop-regulator.c
+++ b/drivers/regulator/anatop-regulator.c
@@ -226,7 +226,7 @@ static struct platform_driver anatop_regulator_driver = {
 		.of_match_table = of_anatop_regulator_match_tbl,
 	},
 	.probe	= anatop_regulator_probe,
-	.remove	= anatop_regulator_remove,
+	.remove	= __devexit_p(anatop_regulator_remove),
 };
 
 static int __init anatop_regulator_init(void)
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] regulator: anatop: Use correct __devexit_p annotation
  2012-05-23  1:08 [PATCH] regulator: anatop: Use correct __devexit_p annotation Axel Lin
@ 2012-05-23 10:19 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-05-23 10:19 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Nancy Chen, Ying-Chun Liu (PaulLiu), Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

On Wed, May 23, 2012 at 09:08:08AM +0800, Axel Lin wrote:
> __devexit functions are discarded when CONFIG_HOTPLUG
> is not set, so the symbol needs to be referenced carefully.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-23 10:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-23  1:08 [PATCH] regulator: anatop: Use correct __devexit_p annotation Axel Lin
2012-05-23 10:19 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).