Message ID | 20230714175042.4065815-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2671476vqm; Fri, 14 Jul 2023 11:10:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFYMMsMfnsywKteTSLV4gBzhP8LQiimrIX3zoB+lyHNvGh2ZN/DC/irHkLSxTbSh+HLEaV X-Received: by 2002:a17:902:8f8a:b0:1a6:b496:4053 with SMTP id z10-20020a1709028f8a00b001a6b4964053mr3166089plo.59.1689358204274; Fri, 14 Jul 2023 11:10:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689358204; cv=none; d=google.com; s=arc-20160816; b=pdDHS5IaZqRv3WfNrmqcP7sFFabqaVgzfPoVa0bvtqHMa4C8RuAVcm1+2Qy8ExZdNe GlbL62Sa1rtscC2SG9b747Z/nsqGRTFo9GGwQ+VOrpPDXr/9EUqYGwiFGcngkT5rWunN HAwroqbWFDlkeFDNMuY41ONNqLNgsifw+AX790TPOUT/X9EN9GnNeMW05AY3gZAxleoc q4+t9lcQ28Ik991boVMwtt5Eg2yxW0tfIC2AMOCMcbVg9KdVUqDIHq4ngRzaZbo3AInT fbZMrdNT4+dxpwXwuQ33O4RQ2ncqSskWMZ1hsqvzeBX64gC0Lq5MgQ4RQp1kWk6xNQoC xtug== 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=9I3bSbFAKVGP3uG8UeEfKdejisGHLrQ6XlcDJAL2RDg=; fh=hc/dMNQJ6WrhBdk2g4hkb20sGPUA5xYMJZmYFQAAGQw=; b=ARV4hA303KZQv2U02yc8ugonh/6OfZpbPfX5BlyJn2bG25AtXpJgpOUnhtYEkXymb/ 44/oWsftC9UbjTNYcmfObBR6TIPX77rr92EMYp1mLkbvYue8twm846/n4CAuNSPCztRF LW06sp2D05MBNCW9Qe3Wa6xKXXcvviSnBp34xK7YH60OUlpXxx+BbUnmdzk0Xd91pl69 speJ7TF4kHlC0j8Rojw96gvwksgAlzDPdGvwaOGn94sSC80+hZ2uQnPScpftAQErBkPW MGitO4wPLOzkSoJkLlkUlZG2GY0DKRusZAV9Tc8+ZmCiJXzHhJhs1UXppVM+qG3CGujS ZzIA== 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 i5-20020a17090332c500b001b9c61c4bcfsi1231401plr.151.2023.07.14.11.09.51; Fri, 14 Jul 2023 11:10:04 -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 S236635AbjGNRxR (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Fri, 14 Jul 2023 13:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236589AbjGNRwy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Jul 2023 13:52:54 -0400 Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBC603C0F; Fri, 14 Jul 2023 10:52:20 -0700 (PDT) Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-3464c774f23so9784225ab.1; Fri, 14 Jul 2023 10:52:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689357078; x=1691949078; 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=9I3bSbFAKVGP3uG8UeEfKdejisGHLrQ6XlcDJAL2RDg=; b=DLwdyX50GA7GntdQ3BPvXzuMgSeQ0JOPXcePTKeLiRggcHmcMBj1YMaHgubETHprRm BcRykHJ+CGsoWVlOkVlpngDkHIP0r1dNrtc41/y8R+6dgBKVUpV0ivmvJcRirJpMTIs1 nrj/2+jF5H6zHquQbEAtGQgXMWLzk4r88NIozqrKH7St1uWExgljNFWqK7fz+o/y4qTP rIHxg8C/1HV12TWGIWemBaBPBxnBxKx3mOX1JhaLP4eTIpqUKpB65ZQwzi0nHgjrLaEh 8aZhWDyrZXUDixtybphIOtB9FUdgxFWyEMxNUQlFZvRVrEnouOEmopoymsE0j9JErOmk FVgw== X-Gm-Message-State: ABy/qLa87lj13jVjfegMYgHTsb37k6F31QQjs9qQnthAIzVTlvw7eIbC x/xNFbo8iqOCZE3AYl40rA== X-Received: by 2002:a92:dc04:0:b0:345:f28f:cc26 with SMTP id t4-20020a92dc04000000b00345f28fcc26mr5039133iln.24.1689357078318; Fri, 14 Jul 2023 10:51:18 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id x16-20020a920610000000b00345f01b3463sm2832093ilg.42.2023.07.14.10.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:51:17 -0700 (PDT) Received: (nullmailer pid 4065963 invoked by uid 1000); Fri, 14 Jul 2023 17:50:48 -0000 From: Rob Herring <robh@kernel.org> To: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] parport: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:50:42 -0600 Message-Id: <20230714175042.4065815-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771420468457497220 X-GMAIL-MSGID: 1771420468457497220 |
Series |
parport: Explicitly include correct DT includes
|
|
Commit Message
Rob Herring
July 14, 2023, 5:50 p.m. UTC
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 <robh@kernel.org>
---
drivers/parport/parport_sunbpp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, 14 Jul 2023 at 18:51, Rob Herring <robh@kernel.org> wrote: > > 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 <robh@kernel.org> Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
diff --git a/drivers/parport/parport_sunbpp.c b/drivers/parport/parport_sunbpp.c index 865fc41dbb6c..c81d4d86994b 100644 --- a/drivers/parport/parport_sunbpp.c +++ b/drivers/parport/parport_sunbpp.c @@ -28,7 +28,7 @@ #include <linux/slab.h> #include <linux/init.h> #include <linux/of.h> -#include <linux/of_device.h> +#include <linux/platform_device.h> #include <linux/parport.h>