Greg Kroah-Hartman
eaae2e9223
staging: csr: remove csr_pmem.h
...
It's no longer needed.
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 >
2012-07-20 16:50:34 -07:00
Greg Kroah-Hartman
786eeeb375
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 >
2012-07-20 16:41:09 -07:00
Greg Kroah-Hartman
55a27055b9
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 >
2012-07-20 15:59:12 -07:00
Greg Kroah-Hartman
4becf12de1
staging: csr: remove CsrMemAllocDma()
...
It's just a call to kmalloc(, GFP_KERNEL | GFP_DMA);
But, all memory allocated by kmalloc can be DMAed, and that's not what
GFP_DMA means, so remove that flag, and just call kmalloc(, GFP_KERNEL);
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 >
2012-07-20 15:47:35 -07:00
Greg Kroah-Hartman
7de2c5b6ae
staging: csr: remove CsrMemCalloc()
...
No one calls it, so it doesn't need to be here.
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 >
2012-07-20 15:43:05 -07:00
Greg Kroah-Hartman
70128792b7
staging: csr: remove CsrMemAlloc()
...
It's just calling kmalloc(, GFP_KERNEL), so call that instead.
A few places should be calling kzalloc(), so do that, and remove the
call to memset at the same time.
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 >
2012-07-20 15:37:12 -07:00
Greg Kroah-Hartman
4fe9db3710
staging: csr: remove CsrMemFree() and CsrMemFreeDma()
...
They were just wrappers 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 >
2012-07-20 15:26:55 -07:00
Greg Kroah-Hartman
d63123fc50
staging: csr: remove csr_util.h
...
Now that the header file has nothing in it, remove it from the tree, and
adjust the places that were including it.
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 >
2012-07-20 15:14:52 -07:00
Greg Kroah-Hartman
df738509ba
staging: csr: remove CsrOffSetOf()
...
It's really just offsetof, 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 >
2012-07-20 15:09:16 -07:00
Greg Kroah-Hartman
2c92e28ee5
stating: csr: remove unneeded #includes in csr_util.c
...
This .c file only holds the MODULE_* stuff for the module, so remove the
other #include calls as they are not needed anymore.
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 >
2012-07-20 15:06:15 -07:00
Greg Kroah-Hartman
ed51b4d84e
staging: csr: make CsrUInt16ToHex static
...
We do this by moving it from csr_util.c to csr_wifi_hip_card_sdio_intr.c
as that's the only place that called it.
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 >
2012-07-20 15:04:31 -07:00
Greg Kroah-Hartman
25aebdb1bb
staging: csr: remove CsrMemCpy()
...
It was just a wrapper around memcpy() 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 >
2012-07-20 15:01:05 -07:00
Greg Kroah-Hartman
4bcb20f834
staging: csr: remove CsrStrLen()
...
It's just a wrapper around strlen(), so call that instead.
Also add a few #include <linux/string.h> to fix up the build with this
change.
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 >
2012-07-20 14:56:57 -07:00
Greg Kroah-Hartman
e4bcecd947
staging: csr: remove CsrVsnprintf()
...
It's just a wrapper for vsnprintf() 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 >
2012-07-20 14:50:38 -07:00
Greg Kroah-Hartman
5a0c09fd73
staging: csr: remove CsrStrDup
...
Use kstrdup() for the few places that called it, and remove
CsrUtf8StrDup() as no one calls that function.
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 >
2012-07-20 14:47:11 -07:00
Greg Kroah-Hartman
6a4f6d38a3
staging: csr: remove CsrStrChr()
...
No one was calling it, so remove it.
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 >
2012-07-20 14:42:02 -07:00
Greg Kroah-Hartman
45755da2d8
staging: csr: remove CsrStrNCmp
...
Only CsrUtf8StrNCmp() was calling it, and nothing was calling
CsrUtf8StrNCmp(), so remove both of them.
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 >
2012-07-20 14:39:57 -07:00
Greg Kroah-Hartman
943b0022df
staging: csr: remove CsrStrCmp
...
Only CsrUtf8StrCmp() was calling it, and nothing was calling
CsrUtf8StrCmp(), so remove both of them.
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 >
2012-07-20 14:35:23 -07:00
Greg Kroah-Hartman
310d5940f5
staging: csr: remove CsrStrNcpy
...
A few other functions were using it, but no one was calling them, so
remove them as well:
CsrUtf8StrNCpy()
CsrUtf8StrNCpyZero()
CsrUtf8StringConcatenateTexts()
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 >
2012-07-20 14:27:26 -07:00
Greg Kroah-Hartman
b6e6e3a840
staging: csr: remove CsrStrCpy
...
It was really just strcpy() so use that instead. Also remove
CsrUtf8StrCpy() as no one was calling that function.
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 >
2012-07-20 14:23:42 -07:00
Greg Kroah-Hartman
c80b2e3f62
staging: csr: remove CsrMemMove()
...
No one was using it (it was also just a wrapper for memmove).
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 >
2012-07-20 14:19:46 -07:00
Greg Kroah-Hartman
85a334e3ce
staging: csr: remove CsrMemCmp
...
It's really just memcmp(), 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 >
2012-07-20 14:18:02 -07:00
Greg Kroah-Hartman
b7244a31e1
staging: csr: remove CsrMemSet
...
It's really just memset(), 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 >
2012-07-20 14:16:11 -07:00
Greg Kroah-Hartman
957417bfec
staging: csr: remove a bunch of unused functions in csr_util.c
...
They were wrappers for other functions already in the kernel, and no one
was even calling them, so remove them.
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 >
2012-07-20 14:12:47 -07:00
Greg Kroah-Hartman
c97dbc89bf
staging: csr: remove indications.c
...
It's an empty file, no need to build and link it.
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 >
2012-07-20 13:13:04 -07:00