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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26302C433EF for ; Mon, 11 Apr 2022 19:49:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0C5383EE1; Mon, 11 Apr 2022 21:47:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649706438; bh=u6ftWsOlr5S93TnpEIo95s7jRw2vVzLBQcQ/XGJlt3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=x8+Kf4eh9Xomrdd3EwEEZmt0fDkfZCN9ivlHMNWkUqKPb6wNvmcOoSGWa98H0njrq iJdRGAhoHa5iPC3rO/3zyOGKPQx2rd0oFoocKAaYN21+ViI5sHfs1oF03B7KVAXFFf xNMQmTelRauaxlaknYTCug00bLC0tPCeFKvZVmelyhVQ6SvsVOYjqXMKEMNhU7Ihzf 73YI2NlUSP6weuMFtVyNmhEsO5nszgvr8aOAv+KP+B+03j+H1u1dX9uwmkN0D4KOKd J2teL1mEnNnpsRIJU2/usy0yY+wgGA+PvaWl0pS0HPbbMR9Cmc79TtU4VUFoH6n27E GGGcaUxmOCozw== Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 6252E83DEF; Mon, 11 Apr 2022 21:46:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649706376; bh=u6ftWsOlr5S93TnpEIo95s7jRw2vVzLBQcQ/XGJlt3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CEu2z/YmI0TPdTtguEki8/zUpkMAWV/tXlwsCPAEHXdALD+yxymokxU4iHekjfE14 DW9sn9BWo2Awt8BXHqBljMFaQ++c44YhKOw0LhSXxXWnbOHd6SyYAiozRuZRvmRUyU poVbtMm+qdM26Po5GKWNf8Pzi238re56HE/QI1HxzulTyjoq1MhWNap/rOnVFNMkOt M6x6cVWIab/wd+F9A41GvkbIsIUNxylHeuof98ddxycWg8K5E72UFZdjrheDNL89Nd R1An0x7xGkCyBl6bJJWl4nyFNo5pF+hpjF6wkhPuuEyGOXghlZkESo1Icq5tiTLc4E Bd8nJc+RlH1RQ== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Tim Harvey , Fabio Estevam , Peng Fan , Stefano Babic Subject: [PATCH v2 14/23] imx: power-domain: Inline arch-imx8m/power-domain.h Date: Mon, 11 Apr 2022 21:45:34 +0200 Message-Id: <20220411194543.730647-14-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220411194543.730647-1-marex@denx.de> References: <20220411194543.730647-1-marex@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean The arch/arm/include/asm/arch-imx8m/power-domain.h is not included anywhere except in drivers/power/domain/imx8m-power-domain.c, just inline the content and drop the header. No functional change. Tested-By: Tim Harvey #imx8mp-venice-defconfig Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Add TB by Tim --- arch/arm/include/asm/arch-imx8m/power-domain.h | 15 --------------- drivers/power/domain/imx8m-power-domain.c | 7 ++++++- 2 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 arch/arm/include/asm/arch-imx8m/power-domain.h diff --git a/arch/arm/include/asm/arch-imx8m/power-domain.h b/arch/arm/include/asm/arch-imx8m/power-domain.h deleted file mode 100644 index 7a833e564b5..00000000000 --- a/arch/arm/include/asm/arch-imx8m/power-domain.h +++ /dev/null @@ -1,15 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * Copyright 2017 NXP - */ - -#ifndef _ASM_ARCH_IMX8M_POWER_DOMAIN_H -#define _ASM_ARCH_IMX8M_POWER_DOMAIN_H - -struct imx8m_power_domain_plat { - int resource_id; - int has_pd; - struct power_domain pd; -}; - -#endif diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c index ac7411f8327..c32dbcc31ae 100644 --- a/drivers/power/domain/imx8m-power-domain.c +++ b/drivers/power/domain/imx8m-power-domain.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -18,6 +17,12 @@ DECLARE_GLOBAL_DATA_PTR; +struct imx8m_power_domain_plat { + int resource_id; + int has_pd; + struct power_domain pd; +}; + static int imx8m_power_domain_on(struct power_domain *power_domain) { struct udevice *dev = power_domain->dev; -- 2.35.1