All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Cc: Marek Vasut <marex@denx.de>, Fabio Estevam <festevam@gmail.com>,
	Peng Fan <peng.fan@nxp.com>, Stefano Babic <sbabic@denx.de>
Subject: [PATCH 2/3] imx: power-domain: Inline arch-imx8m/power-domain.h
Date: Thu, 31 Mar 2022 05:03:48 +0200	[thread overview]
Message-ID: <20220331030349.482922-2-marex@denx.de> (raw)
In-Reply-To: <20220331030349.482922-1-marex@denx.de>

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.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
---
 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 <power-domain-uclass.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <asm/arch/power-domain.h>
 #include <asm/mach-imx/sys_proto.h>
 #include <dm/device-internal.h>
 #include <dm/device.h>
@@ -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


  reply	other threads:[~2022-03-31  3:04 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31  3:03 [PATCH 1/3] imx: power-domain: Descend into pgc subnode if present Marek Vasut
2022-03-31  3:03 ` Marek Vasut [this message]
2022-03-31  3:03 ` [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency Marek Vasut
2022-04-04 12:51   ` Adam Ford
2022-04-04 13:01     ` Marek Vasut
2022-04-04 14:15       ` Adam Ford
2022-04-04 14:25         ` Marek Vasut
2022-04-05 20:14           ` Tim Harvey
2022-04-05 23:00             ` Marek Vasut
2022-04-06 12:22               ` Adam Ford
2022-04-06 12:27                 ` Fabio Estevam
2022-04-06 12:40                   ` Adam Ford
2022-04-06 13:13                     ` Marek Vasut
2022-04-17 22:02             ` Adam Ford
2022-04-07 22:21   ` Tim Harvey
2022-04-16 20:49     ` Adam Ford
2022-04-17  0:35       ` Marek Vasut
2022-04-17  1:01         ` Adam Ford
2022-04-17  2:13           ` Marek Vasut
2022-04-17 13:21             ` Adam Ford
2022-04-17 15:16               ` Marek Vasut
2022-04-17 16:37                 ` Adam Ford
2022-04-17 18:15                   ` Marek Vasut
2022-04-17 18:24                     ` Adam Ford
2022-04-17 21:37                       ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220331030349.482922-2-marex@denx.de \
    --to=marex@denx.de \
    --cc=festevam@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.