summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-20 16:50:34 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-20 16:50:34 -0700
commiteaae2e9223e859cd968b58bd3173a3f17b50538d (patch)
tree8a7c3b6da37c614a10cb596924736ecbd2007712 /drivers/staging
parent786eeeb3756e7fb08174c3a136c16462ccd541d1 (diff)
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/csr/csr_msgconv.c1
-rw-r--r--drivers/staging/csr/csr_pmem.h97
-rw-r--r--drivers/staging/csr/csr_serialize_primitive_types.c1
-rw-r--r--drivers/staging/csr/csr_utf16.c1
-rw-r--r--drivers/staging/csr/csr_wifi_fsm.h1
-rw-r--r--drivers/staging/csr/csr_wifi_fsm_types.h1
-rw-r--r--drivers/staging/csr/csr_wifi_hip_unifi.h1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_ap_converter_init.c1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_ap_free_downstream_contents.c1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_ap_free_upstream_contents.c1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_ap_lib.h1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_ap_prim.h1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_ap_serialize.c1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_ap_serialize.h1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_lib.h1
-rw-r--r--drivers/staging/csr/csr_wifi_nme_serialize.h2
-rw-r--r--drivers/staging/csr/csr_wifi_router_converter_init.c1
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_converter_init.c1
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_free_downstream_contents.c1
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_free_upstream_contents.c1
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_lib.h1
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_serialize.c1
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_serialize.h1
-rw-r--r--drivers/staging/csr/csr_wifi_router_free_downstream_contents.c1
-rw-r--r--drivers/staging/csr/csr_wifi_router_free_upstream_contents.c1
-rw-r--r--drivers/staging/csr/csr_wifi_router_lib.h1
-rw-r--r--drivers/staging/csr/csr_wifi_router_serialize.c1
-rw-r--r--drivers/staging/csr/csr_wifi_router_serialize.h2
-rw-r--r--drivers/staging/csr/csr_wifi_serialize_primitive_types.c1
-rw-r--r--drivers/staging/csr/csr_wifi_sme_ap_lib.h1
-rw-r--r--drivers/staging/csr/csr_wifi_sme_converter_init.c1
-rw-r--r--drivers/staging/csr/csr_wifi_sme_free_downstream_contents.c1
-rw-r--r--drivers/staging/csr/csr_wifi_sme_free_upstream_contents.c1
-rw-r--r--drivers/staging/csr/csr_wifi_sme_lib.h1
-rw-r--r--drivers/staging/csr/csr_wifi_sme_serialize.c1
-rw-r--r--drivers/staging/csr/csr_wifi_sme_serialize.h2
36 files changed, 1 insertions, 134 deletions
diff --git a/drivers/staging/csr/csr_msgconv.c b/drivers/staging/csr/csr_msgconv.c
index dbf0d64a206a..69ae790945bd 100644
--- a/drivers/staging/csr/csr_msgconv.c
+++ b/drivers/staging/csr/csr_msgconv.c
@@ -11,7 +11,6 @@
#include <linux/module.h>
#include <linux/types.h>
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_panic.h"
#include "csr_sched.h"
#include "csr_msgconv.h"
diff --git a/drivers/staging/csr/csr_pmem.h b/drivers/staging/csr/csr_pmem.h
deleted file mode 100644
index 1fb74fa0d1c7..000000000000
--- a/drivers/staging/csr/csr_pmem.h
+++ /dev/null
@@ -1,97 +0,0 @@
-#ifndef CSR_PMEM_H__
-#define CSR_PMEM_H__
-/*****************************************************************************
-
- (c) Cambridge Silicon Radio Limited 2010
- All rights reserved and confidential information of CSR
-
- Refer to LICENSE.txt included with this source for details
- on the license terms.
-
-*****************************************************************************/
-
-#include <linux/types.h>
-#include "csr_macro.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*****************************************************************************
-
- NAME
- CsrPmemZalloc
-
- DESCRIPTION
- This function is equivalent to CsrPmemAlloc, but the allocated memory
- is initialised to zero.
-
- PARAMETERS
- size - Size of memory requested. Note that a size of 0 is valid.
-
- RETURNS
- Pointer to allocated memory.
-
-*****************************************************************************/
-#define CsrPmemZalloc(s) (CsrMemSet(CsrPmemAlloc(s), 0x00, (s)))
-
-
-/*****************************************************************************
-
- NAME
- pnew and zpnew
-
- DESCRIPTIOM
- Type-safe wrappers for CsrPmemAlloc and CsrPmemZalloc, for allocating
- single instances of a specified and named type.
-
- PARAMETERS
- t - type to allocate.
-
-*****************************************************************************/
-#define pnew(t) ((t *) (CsrPmemAlloc(sizeof(t))))
-#define zpnew(t) ((t *) (CsrPmemZalloc(sizeof(t))))
-
-
-/*----------------------------------------------------------------------------*
- * Csr Pmem Debug code. Allows custom callbacks on CsrPmemAlloc and CsrPmemFree
- *----------------------------------------------------------------------------*/
-#ifdef CSR_PMEM_DEBUG_ENABLE
-
-typedef u8 CsrPmemDebugAllocType;
-#define CSR_PMEM_DEBUG_TYPE_PMEM_ALLOC 1
-#define CSR_PMEM_DEBUG_TYPE_MEM_ALLOC 2
-#define CSR_PMEM_DEBUG_TYPE_MEM_CALLOC 3
-#define CSR_PMEM_DEBUG_TYPE_MEM_ALLOC_DMA 4
-
-typedef void (CsrPmemDebugOnAlloc)(void *ptr, void *userptr, size_t size, CsrPmemDebugAllocType type, const char* file, u32 line);
-typedef void (CsrPmemDebugOnFree)(void *ptr, void *userptr, CsrPmemDebugAllocType type, const char* file, u32 line);
-
-/*----------------------------------------------------------------------------*
- * NAME
- * CsrPmemInstallHooks
- *
- * DESCRIPTION
- * Install debug hooks for memory allocation
- * Use NULL values to uninstall the hooks
- * headSize = The number of extra bytes to allocate in the head of the Allocated buffer
- * footSize = The number of extra bytes to allocate in the end of the Allocated buffer
- *
- * RETURNS
- * void
- *
- *----------------------------------------------------------------------------*/
-void CsrPmemDebugInstallHooks(u8 headSize, u8 endSize, CsrPmemDebugOnAlloc *onAllocCallback, CsrPmemDebugOnFree *onFreeCallback);
-
-void *CsrPmemDebugAlloc(size_t size, CsrPmemDebugAllocType type, const char* file, u32 line);
-
-void CsrPmemDebugFree(void *ptr, CsrPmemDebugAllocType type, const char* file, u32 line);
-
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/drivers/staging/csr/csr_serialize_primitive_types.c b/drivers/staging/csr/csr_serialize_primitive_types.c
index bb08f1952bf0..39406fd1f1a1 100644
--- a/drivers/staging/csr/csr_serialize_primitive_types.c
+++ b/drivers/staging/csr/csr_serialize_primitive_types.c
@@ -13,7 +13,6 @@
#include "csr_prim_defs.h"
#include "csr_msgconv.h"
#include "csr_macro.h"
-#include "csr_pmem.h"
#include "csr_lib.h"
void CsrUint8Des(u8 *value, u8 *buffer, size_t *offset)
diff --git a/drivers/staging/csr/csr_utf16.c b/drivers/staging/csr/csr_utf16.c
index 801d8a8c095f..4854f85aa92a 100644
--- a/drivers/staging/csr/csr_utf16.c
+++ b/drivers/staging/csr/csr_utf16.c
@@ -9,7 +9,6 @@
*****************************************************************************/
#include <linux/module.h>
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_unicode.h"
#include "csr_macro.h"
diff --git a/drivers/staging/csr/csr_wifi_fsm.h b/drivers/staging/csr/csr_wifi_fsm.h
index e933ab1be43f..073e2f8b5532 100644
--- a/drivers/staging/csr/csr_wifi_fsm.h
+++ b/drivers/staging/csr/csr_wifi_fsm.h
@@ -15,7 +15,6 @@
extern "C" {
#endif
-#include "csr_pmem.h"
#include "csr_prim_defs.h"
#include "csr_log_text.h"
#include "csr_wifi_fsm_event.h"
diff --git a/drivers/staging/csr/csr_wifi_fsm_types.h b/drivers/staging/csr/csr_wifi_fsm_types.h
index 3251fa900d1d..26752bf316e0 100644
--- a/drivers/staging/csr/csr_wifi_fsm_types.h
+++ b/drivers/staging/csr/csr_wifi_fsm_types.h
@@ -17,7 +17,6 @@ extern "C" {
#include <linux/types.h>
#include "csr_macro.h"
-#include "csr_pmem.h"
#include "csr_panic.h"
#include "csr_sched.h"
diff --git a/drivers/staging/csr/csr_wifi_hip_unifi.h b/drivers/staging/csr/csr_wifi_hip_unifi.h
index cabcf56b1fb8..dc3c60b49702 100644
--- a/drivers/staging/csr/csr_wifi_hip_unifi.h
+++ b/drivers/staging/csr/csr_wifi_hip_unifi.h
@@ -97,7 +97,6 @@ extern "C" {
#include "csr_framework_ext.h" /* from the synergy porting folder */
#include "csr_sdio.h" /* from the synergy porting folder */
-#include "csr_pmem.h" /* from the synergy porting folder */
#include "csr_macro.h" /* from the synergy porting folder */
#include "csr_formatted_io.h" /* from the synergy gsp folder */
#include "csr_wifi_result.h"
diff --git a/drivers/staging/csr/csr_wifi_nme_ap_converter_init.c b/drivers/staging/csr/csr_wifi_nme_ap_converter_init.c
index ce2c7d51b04a..0689d6f1cab1 100644
--- a/drivers/staging/csr/csr_wifi_nme_ap_converter_init.c
+++ b/drivers/staging/csr/csr_wifi_nme_ap_converter_init.c
@@ -11,7 +11,6 @@
/* Note: this is an auto-generated file. */
#include "csr_msgconv.h"
-#include "csr_pmem.h"
#include "csr_macro.h"
#ifdef CSR_WIFI_NME_ENABLE
diff --git a/drivers/staging/csr/csr_wifi_nme_ap_free_downstream_contents.c b/drivers/staging/csr/csr_wifi_nme_ap_free_downstream_contents.c
index bfc511ed49d1..ab9358873ec3 100644
--- a/drivers/staging/csr/csr_wifi_nme_ap_free_downstream_contents.c
+++ b/drivers/staging/csr/csr_wifi_nme_ap_free_downstream_contents.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_wifi_nme_ap_prim.h"
#include "csr_wifi_nme_ap_lib.h"
diff --git a/drivers/staging/csr/csr_wifi_nme_ap_free_upstream_contents.c b/drivers/staging/csr/csr_wifi_nme_ap_free_upstream_contents.c
index d9ebce3e9619..2786a6bbff97 100644
--- a/drivers/staging/csr/csr_wifi_nme_ap_free_upstream_contents.c
+++ b/drivers/staging/csr/csr_wifi_nme_ap_free_upstream_contents.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
-#include "csr_pmem.h"
#include "csr_wifi_nme_ap_prim.h"
#include "csr_wifi_nme_ap_lib.h"
diff --git a/drivers/staging/csr/csr_wifi_nme_ap_lib.h b/drivers/staging/csr/csr_wifi_nme_ap_lib.h
index fed0ea2c0330..d4014709112b 100644
--- a/drivers/staging/csr/csr_wifi_nme_ap_lib.h
+++ b/drivers/staging/csr/csr_wifi_nme_ap_lib.h
@@ -13,7 +13,6 @@
#ifndef CSR_WIFI_NME_AP_LIB_H__
#define CSR_WIFI_NME_AP_LIB_H__
-#include "csr_pmem.h"
#include "csr_sched.h"
#include "csr_macro.h"
#include "csr_msg_transport.h"
diff --git a/drivers/staging/csr/csr_wifi_nme_ap_prim.h b/drivers/staging/csr/csr_wifi_nme_ap_prim.h
index ec6704695365..fc44560b28b8 100644
--- a/drivers/staging/csr/csr_wifi_nme_ap_prim.h
+++ b/drivers/staging/csr/csr_wifi_nme_ap_prim.h
@@ -13,6 +13,7 @@
#ifndef CSR_WIFI_NME_AP_PRIM_H__
#define CSR_WIFI_NME_AP_PRIM_H__
+#include <linux/types.h>
#include "csr_prim_defs.h"
#include "csr_sched.h"
#include "csr_wifi_common.h"
diff --git a/drivers/staging/csr/csr_wifi_nme_ap_serialize.c b/drivers/staging/csr/csr_wifi_nme_ap_serialize.c
index 8112aa04328b..493e33e95e24 100644
--- a/drivers/staging/csr/csr_wifi_nme_ap_serialize.c
+++ b/drivers/staging/csr/csr_wifi_nme_ap_serialize.c
@@ -11,7 +11,6 @@
/* Note: this is an auto-generated file. */
#include <linux/string.h>
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_msgconv.h"
#include "csr_unicode.h"
diff --git a/drivers/staging/csr/csr_wifi_nme_ap_serialize.h b/drivers/staging/csr/csr_wifi_nme_ap_serialize.h
index 524da1420f17..0f5782947223 100644
--- a/drivers/staging/csr/csr_wifi_nme_ap_serialize.h
+++ b/drivers/staging/csr/csr_wifi_nme_ap_serialize.h
@@ -13,7 +13,6 @@
#ifndef CSR_WIFI_NME_AP_SERIALIZE_H__
#define CSR_WIFI_NME_AP_SERIALIZE_H__
-#include "csr_pmem.h"
#include "csr_wifi_msgconv.h"
#include "csr_wifi_nme_ap_prim.h"
diff --git a/drivers/staging/csr/csr_wifi_nme_lib.h b/drivers/staging/csr/csr_wifi_nme_lib.h
index 04b7c31342c8..709ece464977 100644
--- a/drivers/staging/csr/csr_wifi_nme_lib.h
+++ b/drivers/staging/csr/csr_wifi_nme_lib.h
@@ -13,7 +13,6 @@
#ifndef CSR_WIFI_NME_LIB_H__
#define CSR_WIFI_NME_LIB_H__
-#include "csr_pmem.h"
#include "csr_sched.h"
#include "csr_macro.h"
#include "csr_msg_transport.h"
diff --git a/drivers/staging/csr/csr_wifi_nme_serialize.h b/drivers/staging/csr/csr_wifi_nme_serialize.h
index dca36d9f3a3b..c6b163660a3e 100644
--- a/drivers/staging/csr/csr_wifi_nme_serialize.h
+++ b/drivers/staging/csr/csr_wifi_nme_serialize.h
@@ -13,9 +13,7 @@
#ifndef CSR_WIFI_NME_SERIALIZE_H__
#define CSR_WIFI_NME_SERIALIZE_H__
-#include "csr_pmem.h"
#include "csr_wifi_msgconv.h"
-
#include "csr_wifi_nme_prim.h"
#ifdef __cplusplus
diff --git a/drivers/staging/csr/csr_wifi_router_converter_init.c b/drivers/staging/csr/csr_wifi_router_converter_init.c
index a3217865954b..775c013d0514 100644
--- a/drivers/staging/csr/csr_wifi_router_converter_init.c
+++ b/drivers/staging/csr/csr_wifi_router_converter_init.c
@@ -11,7 +11,6 @@
/* Note: this is an auto-generated file. */
#include "csr_msgconv.h"
-#include "csr_pmem.h"
#include "csr_macro.h"
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_converter_init.c b/drivers/staging/csr/csr_wifi_router_ctrl_converter_init.c
index 503f1afcb63b..a02e307e5a88 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_converter_init.c
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_converter_init.c
@@ -11,7 +11,6 @@
/* Note: this is an auto-generated file. */
#include "csr_msgconv.h"
-#include "csr_pmem.h"
#include "csr_macro.h"
#ifdef CSR_LOG_ENABLE
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_free_downstream_contents.c b/drivers/staging/csr/csr_wifi_router_ctrl_free_downstream_contents.c
index b4b724356c1e..7fa85fb4d6c0 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_free_downstream_contents.c
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_free_downstream_contents.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_wifi_router_ctrl_prim.h"
#include "csr_wifi_router_ctrl_lib.h"
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_free_upstream_contents.c b/drivers/staging/csr/csr_wifi_router_ctrl_free_upstream_contents.c
index 4605c535b3b9..954b3defc49c 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_free_upstream_contents.c
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_free_upstream_contents.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_wifi_router_ctrl_prim.h"
#include "csr_wifi_router_ctrl_lib.h"
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_lib.h b/drivers/staging/csr/csr_wifi_router_ctrl_lib.h
index ba8e9836e435..93d0fadf5e6f 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_lib.h
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_lib.h
@@ -13,7 +13,6 @@
#ifndef CSR_WIFI_ROUTER_CTRL_LIB_H__
#define CSR_WIFI_ROUTER_CTRL_LIB_H__
-#include "csr_pmem.h"
#include "csr_sched.h"
#include "csr_macro.h"
#include "csr_msg_transport.h"
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_serialize.c b/drivers/staging/csr/csr_wifi_router_ctrl_serialize.c
index e4b7ec945490..b9f9adb5ad5d 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_serialize.c
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_serialize.c
@@ -11,7 +11,6 @@
/* Note: this is an auto-generated file. */
#include <linux/string.h>
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_msgconv.h"
#include "csr_unicode.h"
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_serialize.h b/drivers/staging/csr/csr_wifi_router_ctrl_serialize.h
index f27037720189..2c2a229f4bf1 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_serialize.h
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_serialize.h
@@ -13,7 +13,6 @@
#ifndef CSR_WIFI_ROUTER_CTRL_SERIALIZE_H__
#define CSR_WIFI_ROUTER_CTRL_SERIALIZE_H__
-#include "csr_pmem.h"
#include "csr_wifi_msgconv.h"
#include "csr_wifi_router_ctrl_prim.h"
diff --git a/drivers/staging/csr/csr_wifi_router_free_downstream_contents.c b/drivers/staging/csr/csr_wifi_router_free_downstream_contents.c
index fbd5b35551c2..c4badc565a91 100644
--- a/drivers/staging/csr/csr_wifi_router_free_downstream_contents.c
+++ b/drivers/staging/csr/csr_wifi_router_free_downstream_contents.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_wifi_router_prim.h"
#include "csr_wifi_router_lib.h"
diff --git a/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c b/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c
index 60f6ecd4472e..de1086d7158d 100644
--- a/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c
+++ b/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_wifi_router_prim.h"
#include "csr_wifi_router_lib.h"
diff --git a/drivers/staging/csr/csr_wifi_router_lib.h b/drivers/staging/csr/csr_wifi_router_lib.h
index f2f5196d126e..06a2214714b7 100644
--- a/drivers/staging/csr/csr_wifi_router_lib.h
+++ b/drivers/staging/csr/csr_wifi_router_lib.h
@@ -13,7 +13,6 @@
#ifndef CSR_WIFI_ROUTER_LIB_H__
#define CSR_WIFI_ROUTER_LIB_H__
-#include "csr_pmem.h"
#include "csr_sched.h"
#include "csr_macro.h"
#include "csr_msg_transport.h"
diff --git a/drivers/staging/csr/csr_wifi_router_serialize.c b/drivers/staging/csr/csr_wifi_router_serialize.c
index adf37d472d20..5717ebc05b0b 100644
--- a/drivers/staging/csr/csr_wifi_router_serialize.c
+++ b/drivers/staging/csr/csr_wifi_router_serialize.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_msgconv.h"
#include "csr_unicode.h"
diff --git a/drivers/staging/csr/csr_wifi_router_serialize.h b/drivers/staging/csr/csr_wifi_router_serialize.h
index 4951c404a3e9..07e21b2b4363 100644
--- a/drivers/staging/csr/csr_wifi_router_serialize.h
+++ b/drivers/staging/csr/csr_wifi_router_serialize.h
@@ -13,9 +13,7 @@
#ifndef CSR_WIFI_ROUTER_SERIALIZE_H__
#define CSR_WIFI_ROUTER_SERIALIZE_H__
-#include "csr_pmem.h"
#include "csr_wifi_msgconv.h"
-
#include "csr_wifi_router_prim.h"
#ifdef __cplusplus
diff --git a/drivers/staging/csr/csr_wifi_serialize_primitive_types.c b/drivers/staging/csr/csr_wifi_serialize_primitive_types.c
index 23b0e5154a0c..dd93d0061190 100644
--- a/drivers/staging/csr/csr_wifi_serialize_primitive_types.c
+++ b/drivers/staging/csr/csr_wifi_serialize_primitive_types.c
@@ -10,7 +10,6 @@
#include <linux/module.h>
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_macro.h"
#include "csr_msgconv.h"
#include "csr_wifi_msgconv.h"
diff --git a/drivers/staging/csr/csr_wifi_sme_ap_lib.h b/drivers/staging/csr/csr_wifi_sme_ap_lib.h
index 8825172724a8..350cb9ec3012 100644
--- a/drivers/staging/csr/csr_wifi_sme_ap_lib.h
+++ b/drivers/staging/csr/csr_wifi_sme_ap_lib.h
@@ -13,7 +13,6 @@
#ifndef CSR_WIFI_SME_AP_LIB_H__
#define CSR_WIFI_SME_AP_LIB_H__
-#include "csr_pmem.h"
#include "csr_sched.h"
#include "csr_macro.h"
#include "csr_msg_transport.h"
diff --git a/drivers/staging/csr/csr_wifi_sme_converter_init.c b/drivers/staging/csr/csr_wifi_sme_converter_init.c
index 2d9c683e7cde..31835f06bbc2 100644
--- a/drivers/staging/csr/csr_wifi_sme_converter_init.c
+++ b/drivers/staging/csr/csr_wifi_sme_converter_init.c
@@ -11,7 +11,6 @@
/* Note: this is an auto-generated file. */
#include "csr_msgconv.h"
-#include "csr_pmem.h"
#include "csr_macro.h"
diff --git a/drivers/staging/csr/csr_wifi_sme_free_downstream_contents.c b/drivers/staging/csr/csr_wifi_sme_free_downstream_contents.c
index ae3fec896aaf..03b5ddb22cd7 100644
--- a/drivers/staging/csr/csr_wifi_sme_free_downstream_contents.c
+++ b/drivers/staging/csr/csr_wifi_sme_free_downstream_contents.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_wifi_sme_prim.h"
#include "csr_wifi_sme_lib.h"
diff --git a/drivers/staging/csr/csr_wifi_sme_free_upstream_contents.c b/drivers/staging/csr/csr_wifi_sme_free_upstream_contents.c
index 1977747a51d1..c04767baaa5b 100644
--- a/drivers/staging/csr/csr_wifi_sme_free_upstream_contents.c
+++ b/drivers/staging/csr/csr_wifi_sme_free_upstream_contents.c
@@ -10,7 +10,6 @@
/* Note: this is an auto-generated file. */
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_wifi_sme_prim.h"
#include "csr_wifi_sme_lib.h"
diff --git a/drivers/staging/csr/csr_wifi_sme_lib.h b/drivers/staging/csr/csr_wifi_sme_lib.h
index e20ae9895a2a..3ca745608252 100644
--- a/drivers/staging/csr/csr_wifi_sme_lib.h
+++ b/drivers/staging/csr/csr_wifi_sme_lib.h
@@ -13,7 +13,6 @@
#ifndef CSR_WIFI_SME_LIB_H__
#define CSR_WIFI_SME_LIB_H__
-#include "csr_pmem.h"
#include "csr_sched.h"
#include "csr_macro.h"
#include "csr_msg_transport.h"
diff --git a/drivers/staging/csr/csr_wifi_sme_serialize.c b/drivers/staging/csr/csr_wifi_sme_serialize.c
index a1db21189954..d55e3ee6921a 100644
--- a/drivers/staging/csr/csr_wifi_sme_serialize.c
+++ b/drivers/staging/csr/csr_wifi_sme_serialize.c
@@ -11,7 +11,6 @@
/* Note: this is an auto-generated file. */
#include <linux/string.h>
#include <linux/slab.h>
-#include "csr_pmem.h"
#include "csr_msgconv.h"
#include "csr_unicode.h"
diff --git a/drivers/staging/csr/csr_wifi_sme_serialize.h b/drivers/staging/csr/csr_wifi_sme_serialize.h
index 9ea9d15fe0d8..4f3af0a6be7c 100644
--- a/drivers/staging/csr/csr_wifi_sme_serialize.h
+++ b/drivers/staging/csr/csr_wifi_sme_serialize.h
@@ -13,9 +13,7 @@
#ifndef CSR_WIFI_SME_SERIALIZE_H__
#define CSR_WIFI_SME_SERIALIZE_H__
-#include "csr_pmem.h"
#include "csr_wifi_msgconv.h"
-
#include "csr_wifi_sme_prim.h"
#ifdef __cplusplus