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 149E0C433EF for ; Tue, 12 Apr 2022 22:43:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EAC8083F17; Wed, 13 Apr 2022 00:43:20 +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=1649803401; bh=nRmF5q1zGHK7WGHXIaruyP/LqEF9DoBH4VoU/bocKcs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=cohZxCdAltXu6wqSOOa3maczD9Q41yJLPFjUyj3FNqWEC07X/YHBo2s/A7rHqbqdJ oC56TZByTRP3rD1fwVj7WUyf1RGtZvbBODE4fNJCGehNis2MMd5l5Hmolh+LlazYMG xujSDMCX7fhy9rW5UtqEh7z/C/jNxl6qbVOGZKX7sMHnaSYWtW6MXWvwEsgq0fvjhG /jtzHluxaswSko9v2kh2aN20JMQJyQhf6l1PrX4wAl3bsYtVpZJxSFWC7uA5V/abaV nlDyyVhvkyw0k8EdL0NyzBY2+FzgVRgPPYvgGbmnh9+XjR3Lr1dqepdh6puXEqbcsq HRnL5PNA51KaA== 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 A528D83EE8; Wed, 13 Apr 2022 00:43:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649803395; bh=nRmF5q1zGHK7WGHXIaruyP/LqEF9DoBH4VoU/bocKcs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uGhEZMQ86VrVwCF93vr9R/gFlYZa/ot2MUqKpDNOJqbVExqZ4SFKR4FAOVnd2dU1y OVe2Y0s2l+DP6RpfuSmswiewRakR1f8itJMYDrUkmYJXO67BP1EK7aaNrWKw3bA6/O JmHDVG2SgglGJVl2cvcDuwJQERQZizD5w6tnez2dg2+ViVIF6ylTjcbJdCbqHvOSOG /EQH77kEuauG3+9dJN3Jpp8Qcv8re98dVluFzRIM2tVme3ccIiru3t4xvuKJqsVaSK zIaSx9SKWIVfjjZzycH6DangnpipnRy/EDH96NgrQto07K9c8M6dUXjxuEe+0bQcwI bNWLBNrLJnIxw== From: Marek Vasut To: u-boot@lists.denx.de, sbabic@denx.de Cc: Marek Vasut , Tim Harvey , Fabio Estevam , Peng Fan Subject: [PATCH v4 03/10] imx: power-domain: Inline arch-imx8m/power-domain.h Date: Wed, 13 Apr 2022 00:42:50 +0200 Message-Id: <20220412224257.195007-3-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220412224257.195007-1-marex@denx.de> References: <20220412224257.195007-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 V3: Skipped to align the Vx scheme V4: Rebase on u-boot-imx/master --- 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