Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754304AbbGTLVO (ORCPT ); Mon, 20 Jul 2015 07:21:14 -0400 Received: from mail-qg0-f44.google.com ([209.85.192.44]:36843 "EHLO mail-qg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754156AbbGTLVM (ORCPT ); Mon, 20 Jul 2015 07:21:12 -0400 MIME-Version: 1.0 In-Reply-To: <1436571223-10959-28-git-send-email-sboyd@codeaurora.org> References: <1436571223-10959-1-git-send-email-sboyd@codeaurora.org> <1436571223-10959-28-git-send-email-sboyd@codeaurora.org> Date: Mon, 20 Jul 2015 13:21:11 +0200 Message-ID: Subject: Re: [PATCH 27/45] clk: ux500: Remove clk.h and clkdev.h includes From: Ulf Hansson To: Stephen Boyd Cc: Mike Turquette , "linux-kernel@vger.kernel.org" , linux-clk@vger.kernel.org, Linus Walleij Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4103 Lines: 116 On 11 July 2015 at 01:33, Stephen Boyd wrote: > Clock provider drivers generally shouldn't include clk.h because > it's the consumer API. Remove the include here because this is a > provider driver. Also remove clkdev.h in files that aren't using > it. > > Cc: Linus Walleij > Signed-off-by: Stephen Boyd Acked-by: Ulf Hansson Kind regards Uffe > --- > drivers/clk/ux500/abx500-clk.c | 1 - > drivers/clk/ux500/clk.h | 3 ++- > drivers/clk/ux500/u8500_clk.c | 1 - > drivers/clk/ux500/u8500_of_clk.c | 2 -- > drivers/clk/ux500/u8540_clk.c | 1 - > drivers/clk/ux500/u9540_clk.c | 2 -- > 6 files changed, 2 insertions(+), 8 deletions(-) > > diff --git a/drivers/clk/ux500/abx500-clk.c b/drivers/clk/ux500/abx500-clk.c > index 3e5e05101302..222425d08ab6 100644 > --- a/drivers/clk/ux500/abx500-clk.c > +++ b/drivers/clk/ux500/abx500-clk.c > @@ -13,7 +13,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/clk/ux500/clk.h b/drivers/clk/ux500/clk.h > index a2bb92d85ee0..b42485da704e 100644 > --- a/drivers/clk/ux500/clk.h > +++ b/drivers/clk/ux500/clk.h > @@ -10,10 +10,11 @@ > #ifndef __UX500_CLK_H > #define __UX500_CLK_H > > -#include > #include > #include > > +struct clk; > + > struct clk *clk_reg_prcc_pclk(const char *name, > const char *parent_name, > resource_size_t phy_base, > diff --git a/drivers/clk/ux500/u8500_clk.c b/drivers/clk/ux500/u8500_clk.c > index 4626b97b7d83..1c7b639d9222 100644 > --- a/drivers/clk/ux500/u8500_clk.c > +++ b/drivers/clk/ux500/u8500_clk.c > @@ -7,7 +7,6 @@ > * License terms: GNU General Public License (GPL) version 2 > */ > > -#include > #include > #include > #include > diff --git a/drivers/clk/ux500/u8500_of_clk.c b/drivers/clk/ux500/u8500_of_clk.c > index e319ef912dc6..c3e3b20e4b43 100644 > --- a/drivers/clk/ux500/u8500_of_clk.c > +++ b/drivers/clk/ux500/u8500_of_clk.c > @@ -8,8 +8,6 @@ > */ > > #include > -#include > -#include > #include > #include > #include > diff --git a/drivers/clk/ux500/u8540_clk.c b/drivers/clk/ux500/u8540_clk.c > index 20c8add90d11..d0de335ea1e9 100644 > --- a/drivers/clk/ux500/u8540_clk.c > +++ b/drivers/clk/ux500/u8540_clk.c > @@ -7,7 +7,6 @@ > * License terms: GNU General Public License (GPL) version 2 > */ > > -#include > #include > #include > #include > diff --git a/drivers/clk/ux500/u9540_clk.c b/drivers/clk/ux500/u9540_clk.c > index 44794782e7e0..179bd3871b34 100644 > --- a/drivers/clk/ux500/u9540_clk.c > +++ b/drivers/clk/ux500/u9540_clk.c > @@ -7,8 +7,6 @@ > * License terms: GNU General Public License (GPL) version 2 > */ > > -#include > -#include > #include > #include > #include > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/