Skip to contentSkip to conversation

regulator: da903x: add missing __devexit_p()

PATCH Applied Mike Frysinger 3 participants 3 messages May 15, 2009 – May 18, 2009 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: da903x: add missing __devexit_p()

The remove function uses __devexit, so the .remove assignment needs __devexit_p() to fix a build error with hotplug disabled.

CC Liam Girdwood <[email protected]>
CC Mike Rapoport <[email protected]>
CC Eric Miao <[email protected]>
---
 drivers/regulator/da903x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/da903x.c +1 -1
index 72b1549..c6628f5 100644
@@ -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)
Signature · 1 line
1.6.3
#1 lore raw
Quoted 7 lines · Mike Frysinger

The remove function uses __devexit, so the .remove assignment needs __devexit_p() to fix a build error with hotplug disabled.

CC Liam Girdwood <[email protected]>
CC Mike Rapoport <[email protected]>
CC Eric Miao <[email protected]>

Yes, Acked.

Quoted 26 lines

---
 drivers/regulator/da903x.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/da903x.c +1 -2
index 72b1549..c6628f5 100644
@@ -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)
--

1.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

#2 lore raw
In reply to Mike Frysinger
Quoted 11 lines · Mike Frysinger

The remove function uses __devexit, so the .remove assignment needs __devexit_p() to fix a build error with hotplug disabled.

CC Liam Girdwood <[email protected]>
CC Mike Rapoport <[email protected]>
CC Eric Miao <[email protected]>
---
 drivers/regulator/da903x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied.

Thanks

Liam