staging: wilc1000: delete wilc_memory.c and wilc_memory.h
authorGlen Lee <glen.lee@atmel.com>
Thu, 10 Sep 2015 03:03:05 +0000 (12:03 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:54 +0000 (18:24 -0700)
The macro WILC_MALLOC is not used in the driver anymore, so just
delete files.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/Makefile
drivers/staging/wilc1000/wilc_memory.c [deleted file]
drivers/staging/wilc1000/wilc_memory.h [deleted file]
drivers/staging/wilc1000/wilc_msgqueue.h
drivers/staging/wilc1000/wilc_oswrapper.h

index 8336a8939cd785c3fa2e10fb1e31c00768a300bf..bdeffea8db830e9ca77898c42773ddcf8b3ca53d 100644 (file)
@@ -21,7 +21,7 @@ ccflags-$(CONFIG_WILC1000_DYNAMICALLY_ALLOCATE_MEMROY) += -DWILC_NORMAL_ALLOC
 
 
 wilc1000-objs := wilc_wfi_cfgoperations.o linux_wlan.o linux_mon.o \
-                       wilc_memory.o wilc_msgqueue.o \
+                       wilc_msgqueue.o \
                        coreconfigurator.o host_interface.o \
                        wilc_sdio.o wilc_spi.o wilc_wlan_cfg.o wilc_debugfs.o
 
diff --git a/drivers/staging/wilc1000/wilc_memory.c b/drivers/staging/wilc1000/wilc_memory.c
deleted file mode 100644 (file)
index e90a957..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-
-#include "wilc_memory.h"
-
-/*!
- *  @author    syounan
- *  @date      18 Aug 2010
- *  @version   1.0
- */
-void *WILC_MemoryAlloc(u32 u32Size, tstrWILC_MemoryAttrs *strAttrs,
-                      char *pcFileName, u32 u32LineNo)
-{
-       if (u32Size > 0)
-               return kmalloc(u32Size, GFP_ATOMIC);
-       else
-               return NULL;
-}
diff --git a/drivers/staging/wilc1000/wilc_memory.h b/drivers/staging/wilc1000/wilc_memory.h
deleted file mode 100644 (file)
index f19cec1..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#ifndef __WILC_MEMORY_H__
-#define __WILC_MEMORY_H__
-
-/*!
- *  @file      wilc_memory.h
- *  @brief     Memory OS wrapper functionality
- *  @author    syounan
- *  @sa                wilc_oswrapper.h top level OS wrapper file
- *  @date      16 Aug 2010
- *  @version   1.0
- */
-
-#include <linux/types.h>
-#include <linux/slab.h>
-
-/*!
- *  @struct             tstrWILC_MemoryAttrs
- *  @brief             Memory API options
- *  @author            syounan
- *  @date              16 Aug 2010
- *  @version           1.0
- */
-typedef struct {
-} tstrWILC_MemoryAttrs;
-
-/*!
- *  @brief     Allocates a given size of bytes
- *  @param[in] u32Size size of memory in bytes to be allocated
- *  @param[in] strAttrs Optional attributes, NULL for default
- *              if not NULL, pAllocationPool should point to the pool to use for
- *              this allocation. if NULL memory will be allocated directly from
- *              the system
- *  @param[in] pcFileName file name of the calling code for debugging
- *  @param[in] u32LineNo line number of the calling code for debugging
- *  @return    The new allocated block, NULL if allocation fails
- *  @note      It is recommended to use of of the wrapper macros instead of
- *              calling this function directly
- *  @sa                sttrWILC_MemoryAttrs
- *  @sa                WILC_MALLOC
- *  @sa                WILC_MALLOC_EX
- *  @author    syounan
- *  @date      16 Aug 2010
- *  @version   1.0
- */
-void *WILC_MemoryAlloc(u32 u32Size, tstrWILC_MemoryAttrs *strAttrs,
-                      char *pcFileName, u32 u32LineNo);
-
-/*!
- * @brief      standrad malloc wrapper with custom attributes
- */
-       #define WILC_MALLOC_EX(__size__, __attrs__) \
-       (WILC_MemoryAlloc( \
-                (__size__), __attrs__, NULL, 0))
-
-
-/*!
- * @brief      standrad malloc wrapper with default attributes
- */
-#define WILC_MALLOC(__size__) \
-       WILC_MALLOC_EX(__size__, NULL)
-
-
-
-
-
-#endif
index fc65dfef2773ada6486db70e779a9a6416370b1c..fb26463a001ccdfd960172149b8b4de125176569 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "wilc_platform.h"
 #include "wilc_errorsupport.h"
-#include "wilc_memory.h"
 
 /*!
  *  @brief             Creates a new Message queue
index cb483253e788ec0d1dab0c0b4ae9a2e34b0024bc..68f6efebc00c075419dbae8b935d2bc1f646a5c3 100644 (file)
 /* Error reporting and handling support */
 #include "wilc_errorsupport.h"
 
-/* Memory support */
-#include "wilc_memory.h"
-
-
 /* Message Queue */
 #include "wilc_msgqueue.h"