summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJürgen Schindele <linux@schindele.name>2008-09-08 22:06:29 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-13 20:07:42 +0100
commit632480ea6548ae66e89a49ef037fd593c7a52418 (patch)
tree49472256ad654eb0ddd648c264020d6d4f67372f /drivers
parent7736c09c6cf9521f2413d78856a66f4a37046e84 (diff)
downloadop-kernel-dev-632480ea6548ae66e89a49ef037fd593c7a52418.zip
op-kernel-dev-632480ea6548ae66e89a49ef037fd593c7a52418.tar.gz
[ARM] 5245/1: Fix warning about unused return value in drivers/pcmcia
Fix warning when compiling "drivers/pcmcia/soc-common.c" The return value of the function "device_create_file" was not used / assigned. Signed-off-by: Jrgen Schindele <linux@schindele.name> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pcmcia/soc_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c
index c48f3f6..da39721 100644
--- a/drivers/pcmcia/soc_common.c
+++ b/drivers/pcmcia/soc_common.c
@@ -748,7 +748,9 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops
add_timer(&skt->poll_timer);
- device_create_file(&skt->socket.dev, &dev_attr_status);
+ ret = device_create_file(&skt->socket.dev, &dev_attr_status);
+ if (ret)
+ goto out_err_8;
}
dev_set_drvdata(dev, sinfo);
@@ -758,6 +760,8 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops
do {
skt = &sinfo->skt[i];
+ device_remove_file(&skt->socket.dev, &dev_attr_status);
+ out_err_8:
del_timer_sync(&skt->poll_timer);
pcmcia_unregister_socket(&skt->socket);
OpenPOWER on IntegriCloud