From nobody Tue Dec 16 16:37:13 2025 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 49F52C46CA3 for ; Fri, 8 Dec 2023 19:01:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574630AbjLHS7X (ORCPT ); Fri, 8 Dec 2023 13:59:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233874AbjLHS7W (ORCPT ); Fri, 8 Dec 2023 13:59:22 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ABE310C4; Fri, 8 Dec 2023 10:59:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=GYqIcq7k1BexZ75pZaJri8Df3+NwQa4Ekej7E/CCgjQ=; b=Dgk6lOT66iX0YgA4niOMVPOTpa 37QOONyoOP/+OtqgLeWrfCzDhgx6r2gwA6gn+7fJNB5M5KNVs4f1rEUd42XxqKzF+mMBwP8ZPYwwH 0vARyyjnMUb3mNlIthEmOtW2DjokEuq4dL4ZKDW0evsFnB9URLRrXAheq97aRx9lPDcRDQcG7Oit8 mkjapYQWJQ1TuDccghs4LknQvTwCCN1q3SiotMtK1NDKgZzz6eRQQWaFDn5JQgj6jA9OCq5qLmedX 4nhS0P8d3OvGnVspHA6/satXbg1sKDjAGB/ckfP0Gl4MiblHNJtSbK7vGCTMPfq8RM2LMZ2oJlQky RHW2k14w==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rBg4N-00GLbH-3D; Fri, 08 Dec 2023 18:59:28 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Rob Herring , Mark Brown , linux-spi@vger.kernel.org Subject: [PATCH -next] spi: mpc52xx: explicitly include linux/platform_device.h Date: Fri, 8 Dec 2023 10:59:27 -0800 Message-ID: <20231208185927.14124-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Since linux/of_platform.h had included linux/platform_device.h and since that inclusion was removed, this driver now needs to include the latter header file explicitly to prevent build errors: drivers/spi/spi-mpc52xx.c: In function 'mpc52xx_spi_probe': drivers/spi/spi-mpc52xx.c:396:20: error: invalid use of undefined type 'str= uct platform_device' and more like that. Fixes: 0d18bcdebb2f ("of: Stop circularly including of_device.h and of_plat= form.h") Signed-off-by: Randy Dunlap Cc: Rob Herring Cc: Mark Brown Cc: linux-spi@vger.kernel.org --- drivers/spi/spi-mpc52xx.c | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c --- a/drivers/spi/spi-mpc52xx.c +++ b/drivers/spi/spi-mpc52xx.c @@ -22,6 +22,7 @@ #include #include #include +#include =20 #include #include