OSDN Git Service

staging: ks7010: review includes of ks_wlan.h file
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Thu, 19 Apr 2018 05:08:04 +0000 (07:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:32:05 +0000 (14:32 +0200)
This commit reviews includes of ks_wlan.h header file.
It removes those which are not being used at all. It
also reorder remaining ones in alphabetical order.
The linux/module.h include file has been moved to the
correct file which is ks7010_sdio.c in order to be able
to compile the driver without problems.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c
drivers/staging/ks7010/ks_wlan.h

index 8424327..81394ba 100644 (file)
@@ -10,6 +10,7 @@
  *   published by the Free Software Foundation.
  */
 
+#include <linux/module.h>
 #include <linux/circ_buf.h>
 #include <linux/firmware.h>
 #include <linux/mmc/card.h>
index efda122..e15fa46 100644 (file)
 
 #define WPS
 
-#include <linux/interrupt.h>
-#include <linux/kernel.h>
-#include <linux/module.h>
-
-#include <linux/spinlock.h>    /* spinlock_t */
-#include <linux/sched.h>       /* wait_queue_head_t */
-#include <linux/types.h>       /* pid_t */
-#include <linux/netdevice.h>   /* struct net_device_stats,  struct sk_buff */
-#include <linux/etherdevice.h>
-#include <linux/wireless.h>
 #include <linux/atomic.h>      /* struct atomic_t */
-#include <linux/timer.h>       /* struct timer_list */
-#include <linux/string.h>
 #include <linux/completion.h>  /* struct completion */
-#include <linux/workqueue.h>
-
-#include <linux/io.h>
+#include <linux/netdevice.h>   /* struct net_device_stats,  struct sk_buff */
+#include <linux/sched.h>       /* wait_queue_head_t */
+#include <linux/spinlock.h>    /* spinlock_t */
+#include <linux/wireless.h>
 
 #include "ks7010_sdio.h"