* [PATCH] extcon: Pacify the section mismatch checker
@ 2012-04-26 20:09 Mark Brown
0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2012-04-26 20:09 UTC (permalink / raw)
To: MyungJoo Ham, Greg Kroah-Hartman, Kyungmin Park; +Cc: linux-kernel, Mark Brown
The section mismatch checker can't figure out that it's safe for
extcon_gpio to reference gpio_extcon_remove() without a _driver on
the end of the name of the struct so add one to avoid warnings.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
drivers/extcon/extcon_gpio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/extcon/extcon_gpio.c b/drivers/extcon/extcon_gpio.c
index 5c0f085..fe7a07b 100644
--- a/drivers/extcon/extcon_gpio.c
+++ b/drivers/extcon/extcon_gpio.c
@@ -153,7 +153,7 @@ static int __devexit gpio_extcon_remove(struct platform_device *pdev)
return 0;
}
-static struct platform_driver gpio_extcon = {
+static struct platform_driver gpio_extcon_driver = {
.probe = gpio_extcon_probe,
.remove = __devexit_p(gpio_extcon_remove),
.driver = {
@@ -162,7 +162,7 @@ static struct platform_driver gpio_extcon = {
},
};
-module_platform_driver(gpio_extcon);
+module_platform_driver(gpio_extcon_driver);
MODULE_AUTHOR("Mike Lockwood <lockwood@android.com>");
MODULE_DESCRIPTION("GPIO extcon driver");
--
1.7.10
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-26 20:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26 20:09 [PATCH] extcon: Pacify the section mismatch checker Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®