From patchwork Fri Jul 14 17:44:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 120581 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2659518vqm; Fri, 14 Jul 2023 10:47:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1tVCrpxvWjq2PGLJIitDS74uTQyxOiAUpbyqawlbWxG//tiy6T+aGudqW6F8SS908bjnW X-Received: by 2002:ac2:5297:0:b0:4fb:9129:705b with SMTP id q23-20020ac25297000000b004fb9129705bmr4046358lfm.6.1689356869765; Fri, 14 Jul 2023 10:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689356869; cv=none; d=google.com; s=arc-20160816; b=aw+OYSmV1CyKP84IaED/ww02qkfTxa0tnJWONsD5HPWCkmHmI1nq8kUrbrRlKC0oFs gCuvzyotXoxZprj6SeITu3WoBbH4TwdjPSJlxmL3IAH1I5EPAv9CGWNmWiupQBn7xkaY wxBCdnqu9SkxwiZCQf4loiRFLQCkFLqzwC+TB7R8PrDeNnL4b9mc5qjWXmPVIXwyA89O ol/Lwpc7Em2FIIsCN0tVib9Al1ixWC9ed+a71aaUkucX+NgOxHANqf/OjhiA7RVAOcp5 X8umVeRBW4zKXpeIOel4UjTudBRM+Kz04t+ev2IEiKHLnxmROixVWaj0PrZQmTxHjj5X JPzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=YKCJUp4CqCgC2RTMueqPi4f10D3ol+zQTAqiaFzYSUI=; fh=K6zHOkxp2yRzCKopApuvgNkQOsRfnYBHchE0fBx9WNo=; b=FHSgxQmfXchS8VRMTmUPPN1DlZpWxIMvZMOE1V/Tt/G4ub4VW04SML3+H4Lm67K32A A2dXfFJHiwmGiGGu/BY1yAQcjGZYPcQkz8veUgSX6+a4wmMY+L7JBgmEIUYEnrf9hSwi 0pqTyYQujXLIUPtX+e3J85z/oR00FYpRCQq5tnclI1xNViPiNaHm3uKrkDWIOwOT1rLF OWkPnMlJa2ZbDGBBJ5oK/8QRsuqxePpqITB/daI8uP4WjxmcHTpCvK45TEbJsXid2bO1 PmeoQuKqV7bwh89mh+xWdCVUztIUpMk3MkffnkyXtzw2fJ117eMCVO6jGlwN7MSzSj8o IcVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17-20020a056402071100b0051e4bd3e707si9455850edx.486.2023.07.14.10.47.24; Fri, 14 Jul 2023 10:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236287AbjGNRo5 (ORCPT + 99 others); Fri, 14 Jul 2023 13:44:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236258AbjGNRor (ORCPT ); Fri, 14 Jul 2023 13:44:47 -0400 Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 400563C01; Fri, 14 Jul 2023 10:44:32 -0700 (PDT) Received: by mail-io1-f51.google.com with SMTP id ca18e2360f4ac-78362f57500so88976239f.3; Fri, 14 Jul 2023 10:44:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356671; x=1691948671; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YKCJUp4CqCgC2RTMueqPi4f10D3ol+zQTAqiaFzYSUI=; b=OH1QJ40p0QRMc78EeWuZHI59DocxOZy5lkyAEkmMt+kUT38YoTeaEoUA1vN1/kCGDq qQnDEk2mE7Av5jfXCCU3LDHoahfldmzyHkwKDz05lRY4CB5loNOORMi4Oubre7ZbH+sA U8D8qIMyiz8/g3NQIVxcXLQQZIhr4rubL12fCquFMSVzlBv0gfqW4JQbG7IJi+zQthS0 btluRVdLAEaNs1OjBFQBquRLNRh3Rdpp7NpuzRyJwA3rGLFUFq7I6PQj01G33HSq2Aqa 3CTjzNpP3k+s0FXHRQ+TyB5JhgvhTMfEFeKT/8SexUR8uVdHRrjai/tlYF82fPl153t6 Wu9g== X-Gm-Message-State: ABy/qLab58IX8l21v0uVjZUmMPYq4CCL8fuVUczu+53lgJs+FwzfO5sb 6zo9gjd9bDboTQfv+bJkKQ== X-Received: by 2002:a5e:c010:0:b0:783:58d1:823a with SMTP id u16-20020a5ec010000000b0078358d1823amr5981939iol.9.1689356671351; Fri, 14 Jul 2023 10:44:31 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id w11-20020a6bd60b000000b00787496dad4bsm1741226ioa.49.2023.07.14.10.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:44:30 -0700 (PDT) Received: (nullmailer pid 4054490 invoked by uid 1000); Fri, 14 Jul 2023 17:44:27 -0000 From: Rob Herring To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Matthias Brugger , AngeloGioacchino Del Regno , Dmitry Osipenko , Thierry Reding , Jonathan Hunter Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-tegra@vger.kernel.org Subject: [PATCH] devfreq: imx: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:44:25 -0600 Message-Id: <20230714174425.4054393-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771419069259975280 X-GMAIL-MSGID: 1771419069259975280 The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as 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 --- drivers/devfreq/imx-bus.c | 2 +- drivers/devfreq/imx8m-ddrc.c | 2 +- drivers/devfreq/mtk-cci-devfreq.c | 1 - drivers/devfreq/tegra30-devfreq.c | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/devfreq/imx-bus.c b/drivers/devfreq/imx-bus.c index a727067980fb..86850b7dea09 100644 --- a/drivers/devfreq/imx-bus.c +++ b/drivers/devfreq/imx-bus.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/devfreq/imx8m-ddrc.c b/drivers/devfreq/imx8m-ddrc.c index 16636973eb10..e1348490c8aa 100644 --- a/drivers/devfreq/imx8m-ddrc.c +++ b/drivers/devfreq/imx8m-ddrc.c @@ -3,9 +3,9 @@ * Copyright 2019 NXP */ +#include #include #include -#include #include #include #include diff --git a/drivers/devfreq/mtk-cci-devfreq.c b/drivers/devfreq/mtk-cci-devfreq.c index 6354622eda65..83a73f0ccd80 100644 --- a/drivers/devfreq/mtk-cci-devfreq.c +++ b/drivers/devfreq/mtk-cci-devfreq.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c index 503376b894b6..4a4f0106ab9d 100644 --- a/drivers/devfreq/tegra30-devfreq.c +++ b/drivers/devfreq/tegra30-devfreq.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include