staging: csr: remove CsrPmemAlloc
commit786eeeb3756e7fb08174c3a136c16462ccd541d1
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jul 2012 23:41:09 +0000 (20 16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jul 2012 23:41:09 +0000 (20 16:41 -0700)
tree9b7621b4448768f8f950e80a1bba468652608f1c
parent55a27055b9ea5aabf8206ed6b7777c79f4e840c3
staging: csr: remove CsrPmemAlloc

It's just a wrapper around kmalloc(, GFP_KERNEL) + a call to panic() if
we are out of memory, which is a very foolish thing to do (the panic
that is.)

So replace it with calls to kmalloc() and ignore the out-of-memory
casese for now, odds are it will not be hit, and if it does, hey, we
will end up panicing just the same as with the old code.

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>
26 files changed:
drivers/staging/csr/Makefile
drivers/staging/csr/csr_msgconv.c
drivers/staging/csr/csr_pmem.c [deleted file]
drivers/staging/csr/csr_pmem.h
drivers/staging/csr/csr_sched.h
drivers/staging/csr/csr_serialize_primitive_types.c
drivers/staging/csr/csr_utf16.c
drivers/staging/csr/csr_wifi_fsm.h
drivers/staging/csr/csr_wifi_hip_card_sdio.c
drivers/staging/csr/csr_wifi_nme_ap_lib.h
drivers/staging/csr/csr_wifi_nme_ap_serialize.c
drivers/staging/csr/csr_wifi_nme_lib.h
drivers/staging/csr/csr_wifi_router_ctrl_lib.h
drivers/staging/csr/csr_wifi_router_ctrl_serialize.c
drivers/staging/csr/csr_wifi_router_lib.h
drivers/staging/csr/csr_wifi_router_serialize.c
drivers/staging/csr/csr_wifi_router_transport.c
drivers/staging/csr/csr_wifi_serialize_primitive_types.c
drivers/staging/csr/csr_wifi_sme_ap_lib.h
drivers/staging/csr/csr_wifi_sme_lib.h
drivers/staging/csr/csr_wifi_sme_serialize.c
drivers/staging/csr/drv.c
drivers/staging/csr/putest.c
drivers/staging/csr/sme_mgt.c
drivers/staging/csr/ul_int.c
drivers/staging/csr/unifi_sme.c