From: Yangtao Li <tiny.windzz@gmail.com>
To: vireshk@kernel.org, nm@ti.com, sboyd@kernel.org,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Yangtao Li <tiny.windzz@gmail.com>
Subject: [PATCH] OPP: remove some duplicated includes
Date: Mon, 26 Nov 2018 08:18:38 -0500 [thread overview]
Message-ID: <20181126131838.30891-1-tiny.windzz@gmail.com> (raw)
Some header files are included twice.It's unnecessary,
so just remove them.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
drivers/opp/core.c | 2 --
drivers/opp/cpu.c | 1 -
drivers/opp/debugfs.c | 2 --
drivers/opp/of.c | 1 -
drivers/opp/opp.h | 1 -
drivers/opp/ti-opp-supply.c | 1 -
6 files changed, 8 deletions(-)
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 2c2df4e4fc14..31fc2cbb9d1f 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -15,9 +15,7 @@
#include <linux/clk.h>
#include <linux/errno.h>
-#include <linux/err.h>
#include <linux/slab.h>
-#include <linux/device.h>
#include <linux/export.h>
#include <linux/pm_domain.h>
#include <linux/regulator/consumer.h>
diff --git a/drivers/opp/cpu.c b/drivers/opp/cpu.c
index ab6d07e78945..778ac771ce93 100644
--- a/drivers/opp/cpu.c
+++ b/drivers/opp/cpu.c
@@ -15,7 +15,6 @@
#include <linux/cpu.h>
#include <linux/cpufreq.h>
-#include <linux/err.h>
#include <linux/errno.h>
#include <linux/export.h>
#include <linux/slab.h>
diff --git a/drivers/opp/debugfs.c b/drivers/opp/debugfs.c
index e6828e5f81b0..05670aeebecd 100644
--- a/drivers/opp/debugfs.c
+++ b/drivers/opp/debugfs.c
@@ -11,8 +11,6 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/debugfs.h>
-#include <linux/device.h>
-#include <linux/err.h>
#include <linux/init.h>
#include <linux/limits.h>
#include <linux/slab.h>
diff --git a/drivers/opp/of.c b/drivers/opp/of.c
index 5a4b47958073..ea510e350682 100644
--- a/drivers/opp/of.c
+++ b/drivers/opp/of.c
@@ -15,7 +15,6 @@
#include <linux/cpu.h>
#include <linux/errno.h>
-#include <linux/device.h>
#include <linux/of_device.h>
#include <linux/pm_domain.h>
#include <linux/slab.h>
diff --git a/drivers/opp/opp.h b/drivers/opp/opp.h
index 9c6544b4f4f9..558c5e638d97 100644
--- a/drivers/opp/opp.h
+++ b/drivers/opp/opp.h
@@ -20,7 +20,6 @@
#include <linux/list.h>
#include <linux/limits.h>
#include <linux/pm_opp.h>
-#include <linux/notifier.h>
struct clk;
struct regulator;
diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
index 3f4fb4dbbe33..b1d7442960e3 100644
--- a/drivers/opp/ti-opp-supply.c
+++ b/drivers/opp/ti-opp-supply.c
@@ -13,7 +13,6 @@
#include <linux/device.h>
#include <linux/io.h>
#include <linux/module.h>
-#include <linux/notifier.h>
#include <linux/of_device.h>
#include <linux/of.h>
#include <linux/platform_device.h>
--
2.17.0
next reply other threads:[~2018-11-26 13:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-26 13:18 Yangtao Li [this message]
2018-11-27 4:05 ` [PATCH] OPP: remove some duplicated includes Viresh Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181126131838.30891-1-tiny.windzz@gmail.com \
--to=tiny.windzz@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=nm@ti.com \
--cc=sboyd@kernel.org \
--cc=vireshk@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox