summaryrefslogtreecommitdiff
path: root/drivers/staging/csr/putest.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-20 22:59:12 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-20 22:59:12 (GMT)
commit55a27055b9ea5aabf8206ed6b7777c79f4e840c3 (patch)
tree29867609589a69e8a86e6e76b0885f0dbf4ce78f /drivers/staging/csr/putest.c
parent4becf12de1a4efefd28e057750e35f4ceb32dd1d (diff)
downloadlinux-fsl-qoriq-55a27055b9ea5aabf8206ed6b7777c79f4e840c3.tar.xz
staging: csr: remove CsrPmemFree()
It's just a wrapper around kfree() so call that instead. Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com> Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com> Cc: Riku Mettälä <riku.mettala@bluegiga.com> Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/csr/putest.c')
-rw-r--r--drivers/staging/csr/putest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/csr/putest.c b/drivers/staging/csr/putest.c
index 96597ac..f2cb11e 100644
--- a/drivers/staging/csr/putest.c
+++ b/drivers/staging/csr/putest.c
@@ -499,7 +499,7 @@ int unifi_putest_dl_fw_buff(unifi_priv_t *priv, unsigned char *arg)
fw_user_ptr = ((unsigned char*)arg) + sizeof(unifi_putest_command_t) + sizeof(unsigned int);
if (copy_from_user(fw_buf, (void*)fw_user_ptr, fw_length)) {
unifi_error(priv, "unifi_putest_dl_fw_buff: Failed to get the buffer\n");
- CsrPmemFree(fw_buf);
+ kfree(fw_buf);
return -EFAULT;
}
@@ -537,7 +537,7 @@ int unifi_putest_dl_fw_buff(unifi_priv_t *priv, unsigned char *arg)
free_fw:
/* Finished with the putest f/w, so restore the station f/w */
priv->fw_sta = temp_fw_sta;
- CsrPmemFree(fw_buf);
+ kfree(fw_buf);
return CsrHipResultToStatus(csrResult);
}