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@xxxxxxxxx> --- drivers/staging/ks7010/ks7010_sdio.c | 1 + drivers/staging/ks7010/ks_wlan.h | 19 ++++--------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index fedcbb3..b13cc95 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -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> diff --git a/drivers/staging/ks7010/ks_wlan.h b/drivers/staging/ks7010/ks_wlan.h index c1bab57..2150f73 100644 --- a/drivers/staging/ks7010/ks_wlan.h +++ b/drivers/staging/ks7010/ks_wlan.h @@ -14,23 +14,12 @@ #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" -- 2.7.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel