aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-06-16 06:12:13 +0100
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:45:46 -0600
commitdf4714556e745cb8092401c6935fb3d1d456527d (patch)
tree5def75b942d38eb969605284bf0ff85960db1a96
parent6220d9aa0f045b6fc98d72f3360cd87521a059eb (diff)
downloadlinux-2.6.34-ux500-df4714556e745cb8092401c6935fb3d1d456527d.tar.gz
nomadik-gpio: fix "ignoring return value" warning
arch/arm/plat-nomadik/gpio.c: In function 'nmk_gpio_remove': arch/arm/plat-nomadik/gpio.c:630: warning: ignoring return value of 'gpiochip_remove', declared with attribute warn_unused_result Because this function is marked __exit and this code can't be built as a module, this function is never used. So just remove it, fixing the warning in the process. ST-Ericsson ID: AP264622 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/1799 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I0cabc4ee0f060e0bf19a40bc1ad24f252a5bf9f4 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2628
-rw-r--r--arch/arm/plat-nomadik/gpio.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c
index 12bacefc255..d8d10410377 100644
--- a/arch/arm/plat-nomadik/gpio.c
+++ b/arch/arm/plat-nomadik/gpio.c
@@ -758,26 +758,6 @@ out:
return ret;
}
-static int __exit nmk_gpio_remove(struct platform_device *dev)
-{
- struct nmk_gpio_chip *nmk_chip;
- struct resource *res;
-
- res = platform_get_resource(dev, IORESOURCE_MEM, 0);
- if (!res)
- printk(KERN_ERR "IORESOURCE_MEM unavailable\n");
-
- nmk_chip = platform_get_drvdata(dev);
- gpiochip_remove(&nmk_chip->chip);
- clk_disable(nmk_chip->clk);
- clk_put(nmk_chip->clk);
- kfree(nmk_chip);
- if (res)
- release_mem_region(res->start, resource_size(res));
-
- return 0;
-}
-
#ifdef CONFIG_PM
static int nmk_gpio_pm(struct platform_device *dev, bool suspend)
{
@@ -830,7 +810,6 @@ static struct platform_driver nmk_gpio_driver = {
.name = "gpio",
},
.probe = nmk_gpio_probe,
- .remove = __exit_p(nmk_gpio_remove),
.suspend = nmk_gpio_suspend,
.resume = nmk_gpio_resume,
};