From patchwork Wed Aug 23 17:04:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13362953 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C6D5C3DA66 for ; Wed, 23 Aug 2023 17:05:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237211AbjHWRFC (ORCPT ); Wed, 23 Aug 2023 13:05:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235478AbjHWRFB (ORCPT ); Wed, 23 Aug 2023 13:05:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3492710C1; Wed, 23 Aug 2023 10:05:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BFBAA63986; Wed, 23 Aug 2023 17:04:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8682DC433C7; Wed, 23 Aug 2023 17:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692810298; bh=GXvD77XTaP2qkGbTvhgKUp5FtOuSXwU1zkqXZiEQM1s=; h=From:To:Cc:Subject:Date:From; b=WE09yDkO6iIhcAp2WHThhSYB7H8IMd2eQfdEw2iUhuhdQpqr+S/kXh5PPm3ZdY/5Y WzCxFD2LInrIallH95GeSk+cFXoMCumMaADMYe1ZhgeKfzNSZvHXm0lT8LkamMC2pF HEkIO1R0EzdQeO4zFh6vFPbvILJCqDnY3JtjRcCmwBsorE8ot1RJl8Yn4Cys43DloO pManHR3Tz2dpEX/TZq5ArSESreRJkTk6VLXK3q52ytqLWX6UYXrlBwUuZtDzt80Rse 6Rx4+s1kqLwidpB/kgjrAwTLa7oSSfzKklCIaR2LTmMB7lw8tNPmNGCOLbyuqkMLvD ZB1aSsWoYOwGQ== Received: (nullmailer pid 2491505 invoked by uid 1000); Wed, 23 Aug 2023 17:04:56 -0000 From: Rob Herring To: Ulf Hansson , Matthias Brugger , AngeloGioacchino Del Regno , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2] genpd: Explicitly include correct DT includes Date: Wed, 23 Aug 2023 12:04:37 -0500 Message-Id: <20230823170438.2489746-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring Acked-by: Jernej Skrabec --- v2: Previously sent for drivers/soc/. Gathered up files which got moved to genpd to new patch. --- drivers/genpd/mediatek/mtk-pm-domains.c | 2 +- drivers/genpd/mediatek/mtk-scpsys.c | 2 +- drivers/genpd/sunxi/sun20i-ppu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/genpd/mediatek/mtk-pm-domains.c b/drivers/genpd/mediatek/mtk-pm-domains.c index 354249cc1b12..ee962804b830 100644 --- a/drivers/genpd/mediatek/mtk-pm-domains.c +++ b/drivers/genpd/mediatek/mtk-pm-domains.c @@ -8,8 +8,8 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/drivers/genpd/mediatek/mtk-scpsys.c b/drivers/genpd/mediatek/mtk-scpsys.c index 7a668888111c..b374d01fdac7 100644 --- a/drivers/genpd/mediatek/mtk-scpsys.c +++ b/drivers/genpd/mediatek/mtk-scpsys.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/genpd/sunxi/sun20i-ppu.c b/drivers/genpd/sunxi/sun20i-ppu.c index 98cb41d36560..8700f9dd5f75 100644 --- a/drivers/genpd/sunxi/sun20i-ppu.c +++ b/drivers/genpd/sunxi/sun20i-ppu.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include