]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
greybus: drop some unnecessary headers
authorAlex Elder <elder@linaro.org>
Tue, 9 Jun 2015 22:42:49 +0000 (17:42 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 10 Jun 2015 17:38:23 +0000 (10:38 -0700)
There's no need to include anything other than "greybus.h" in
"connection.c".  Same thing in "core.c" and "manifest.c" and
"svc.c".  Some files need headers included, but most come along
with "greybus.h".

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/core.c
drivers/staging/greybus/es1.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/manifest.c
drivers/staging/greybus/svc.c

index 5ab744b14a0d5c401b2f6d05804905f258a10bda..8f528c1640e1d2c6eb4a3395098014e1311a5481 100644 (file)
@@ -7,9 +7,6 @@
  * Released under the GPLv2 only.
  */
 
-#include <linux/atomic.h>
-
-#include "kernel_ver.h"
 #include "greybus.h"
 
 static DEFINE_SPINLOCK(gb_connections_lock);
index a4d7057a061cc5d9af98275d441e1cdf13975f15..e7a280cfbe81de88f05de05c7961ed5e5d132fec 100644 (file)
@@ -9,13 +9,6 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
-#include <linux/types.h>
-#include <linux/module.h>
-#include <linux/moduleparam.h>
-#include <linux/kernel.h>
-#include <linux/slab.h>
-#include <linux/device.h>
-
 #include "greybus.h"
 
 /* Allow greybus to be disabled at boot if needed */
index 45241c37f1d4cb61be0a857e6680046d476ea2a8..56c80c6ddb3ab64a0b7d9cc492f46dba3141da96 100644 (file)
@@ -6,16 +6,11 @@
  *
  * Released under the GPLv2 only.
  */
-#include <linux/kernel.h>
-#include <linux/module.h>
 #include <linux/kthread.h>
-#include <linux/slab.h>
-#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/usb.h>
 #include <linux/kfifo.h>
 #include <linux/debugfs.h>
-#include <linux/uaccess.h>
 #include <asm/unaligned.h>
 
 #include "greybus.h"
index b5b395f5c968aca5019a164074f92a00baf17e58..5257779f7aed21140c7aa44d50a024bb7e3fd8dc 100644 (file)
@@ -6,16 +6,11 @@
  *
  * Released under the GPLv2 only.
  */
-#include <linux/kernel.h>
-#include <linux/module.h>
 #include <linux/kthread.h>
-#include <linux/slab.h>
-#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/usb.h>
 #include <linux/kfifo.h>
 #include <linux/debugfs.h>
-#include <linux/uaccess.h>
 #include <asm/unaligned.h>
 
 #include "greybus.h"
index 2022183a6e4404bfff2c5ee42e0f0b435d0dd10b..f4fe4f37cda616ad292628b24caa17e32da073e4 100644 (file)
@@ -9,8 +9,6 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
-#include <linux/err.h>
-
 #include "greybus.h"
 
 static const char *get_descriptor_type_string(u8 type)
index f022838102316cf50c77c2467469ce8ed90a9be3..ba85e81964c42eae65645ffeccc976b70ba8762e 100644 (file)
@@ -7,12 +7,7 @@
  * Released under the GPLv2 only.
  */
 
-#include <linux/kernel.h>
-#include <linux/module.h>
-#include <linux/slab.h>
-
 #include "greybus.h"
-#include "greybus_protocols.h"
 
 struct gb_svc {
        struct gb_connection    *connection;