From 190241a362480e193e7b5f7a9fd9ff492c4acb31 Mon Sep 17 00:00:00 2001 From: Alex Elder Date: Tue, 9 Jun 2015 17:42:49 -0500 Subject: [PATCH] greybus: drop some unnecessary headers 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/connection.c | 3 --- drivers/staging/greybus/core.c | 7 ------- drivers/staging/greybus/es1.c | 5 ----- drivers/staging/greybus/es2.c | 5 ----- drivers/staging/greybus/manifest.c | 2 -- drivers/staging/greybus/svc.c | 5 ----- 6 files changed, 27 deletions(-) diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 5ab744b14a0d5..8f528c1640e1d 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -7,9 +7,6 @@ * Released under the GPLv2 only. */ -#include - -#include "kernel_ver.h" #include "greybus.h" static DEFINE_SPINLOCK(gb_connections_lock); diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index a4d7057a061cc..e7a280cfbe81d 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -9,13 +9,6 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt -#include -#include -#include -#include -#include -#include - #include "greybus.h" /* Allow greybus to be disabled at boot if needed */ diff --git a/drivers/staging/greybus/es1.c b/drivers/staging/greybus/es1.c index 45241c37f1d4c..56c80c6ddb3ab 100644 --- a/drivers/staging/greybus/es1.c +++ b/drivers/staging/greybus/es1.c @@ -6,16 +6,11 @@ * * Released under the GPLv2 only. */ -#include -#include #include -#include -#include #include #include #include #include -#include #include #include "greybus.h" diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index b5b395f5c968a..5257779f7aed2 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -6,16 +6,11 @@ * * Released under the GPLv2 only. */ -#include -#include #include -#include -#include #include #include #include #include -#include #include #include "greybus.h" diff --git a/drivers/staging/greybus/manifest.c b/drivers/staging/greybus/manifest.c index 2022183a6e440..f4fe4f37cda61 100644 --- a/drivers/staging/greybus/manifest.c +++ b/drivers/staging/greybus/manifest.c @@ -9,8 +9,6 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt -#include - #include "greybus.h" static const char *get_descriptor_type_string(u8 type) diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index f022838102316..ba85e81964c42 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -7,12 +7,7 @@ * Released under the GPLv2 only. */ -#include -#include -#include - #include "greybus.h" -#include "greybus_protocols.h" struct gb_svc { struct gb_connection *connection; -- 2.30.2