Skip to contentSkip to conversation

extcon: Pacify the section mismatch checker

PATCH New Mark Brown 1 participant 1 message Apr 26, 2012 External connector subsystem (extcon)

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 extcon: Pacify the section mismatch checker

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.

---
 drivers/extcon/extcon_gpio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/extcon/extcon_gpio.c +2 -2
index 5c0f085..fe7a07b 100644
@@ -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 <[email protected]>");
 MODULE_DESCRIPTION("GPIO extcon driver");
Signature · 1 line
1.7.10