summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-xgs-iproc.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-12-10 22:54:01 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2019-12-11 12:13:42 +0300
commit9cc7a18bcbd47e82960a059127497ab09c4abd05 (patch)
tree1767b8533ae3a16684a4e4bb31cc7ddabfbd185d /drivers/gpio/gpio-xgs-iproc.c
parent11e299de3aced4ea23a9fb1fef6c983c8d516302 (diff)
downloadlinux-9cc7a18bcbd47e82960a059127497ab09c4abd05.tar.xz
gpio: xgs-iproc: remove __exit annotation for iproc_gpio_remove
When built into the kernel, the driver causes a link problem: `iproc_gpio_remove' referenced in section `.data' of drivers/gpio/gpio-xgs-iproc.o: defined in discarded section `.exit.text' of drivers/gpio/gpio-xgs-iproc.o Remove the incorrect annotation. Fixes: 6a41b6c5fc20 ("gpio: Add xgs-iproc driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-xgs-iproc.c')
-rw-r--r--drivers/gpio/gpio-xgs-iproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-xgs-iproc.c b/drivers/gpio/gpio-xgs-iproc.c
index 773e5c24309e..b21c2e436b61 100644
--- a/drivers/gpio/gpio-xgs-iproc.c
+++ b/drivers/gpio/gpio-xgs-iproc.c
@@ -280,7 +280,7 @@ static int iproc_gpio_probe(struct platform_device *pdev)
return 0;
}
-static int __exit iproc_gpio_remove(struct platform_device *pdev)
+static int iproc_gpio_remove(struct platform_device *pdev)
{
struct iproc_gpio_chip *chip;