diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-03-26 10:33:16 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-07-08 11:29:56 +0100 |
commit | e33e640ad0b76151534a2b9387b98eb02d6ddda7 (patch) | |
tree | 5a208cdc6feafa4f244c84a4e252fec019bf6802 /drivers/pcmcia/sa1100_generic.c | |
parent | 72010aca55264cfe6516a955066c846d3885b0c6 (diff) |
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.c | 1 |
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; } |