summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/sa1100_generic.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-03-26 11:33:16 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-07-08 12:29:56 +0200
commite33e640ad0b76151534a2b9387b98eb02d6ddda7 (patch)
tree5a208cdc6feafa4f244c84a4e252fec019bf6802 /drivers/pcmcia/sa1100_generic.c
parentpcmcia: sa11x0: fix missing clk_put() in sa11x0 socket drivers (diff)
downloadlinux-e33e640ad0b76151534a2b9387b98eb02d6ddda7.tar.xz
linux-e33e640ad0b76151534a2b9387b98eb02d6ddda7.zip
pcmcia: sa11x0: convert memory allocation to devm_* API
Convert the sa11x0 socket driver memory allocation to use devm_kzalloc() to simplify the cleanup path. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/pcmcia/sa1100_generic.c')
-rw-r--r--drivers/pcmcia/sa1100_generic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pcmcia/sa1100_generic.c b/drivers/pcmcia/sa1100_generic.c
index 42861cc70158..66acdc85727c 100644
--- a/drivers/pcmcia/sa1100_generic.c
+++ b/drivers/pcmcia/sa1100_generic.c
@@ -93,7 +93,6 @@ static int sa11x0_drv_pcmcia_remove(struct platform_device *dev)
for (i = 0; i < sinfo->nskt; i++)
soc_pcmcia_remove_one(&sinfo->skt[i]);
- kfree(sinfo);
return 0;
}