linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert+renesas@glider.be>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 10/15] ARM: shmobile: R-Mobile: Remove legacy PM Domain code
Date: Wed, 17 Jun 2015 09:31:26 +0000	[thread overview]
Message-ID: <1434533491-21979-11-git-send-email-geert+renesas@glider.be> (raw)
In-Reply-To: <1434533491-21979-1-git-send-email-geert+renesas@glider.be>

The last user of the legacy R-Mobile PM Domain code was the r8a7740
legacy SoC code, which has been removed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/mach-shmobile/pm-rmobile.c | 39 -------------------------------------
 arch/arm/mach-shmobile/pm-rmobile.h | 24 -----------------------
 2 files changed, 63 deletions(-)

diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c
index b9b494f5ca99fc7c..a5b96b990aea8dfc 100644
--- a/arch/arm/mach-shmobile/pm-rmobile.c
+++ b/arch/arm/mach-shmobile/pm-rmobile.c
@@ -169,43 +169,6 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd)
 	__rmobile_pd_power_up(rmobile_pd, false);
 }
 
-#ifdef CONFIG_ARCH_SHMOBILE_LEGACY
-
-void rmobile_init_domains(struct rmobile_pm_domain domains[], int num)
-{
-	int j;
-
-	for (j = 0; j < num; j++)
-		rmobile_init_pm_domain(&domains[j]);
-}
-
-void rmobile_add_device_to_domain_td(const char *domain_name,
-				     struct platform_device *pdev,
-				     struct gpd_timing_data *td)
-{
-	struct device *dev = &pdev->dev;
-
-	__pm_genpd_name_add_device(domain_name, dev, td);
-}
-
-void rmobile_add_devices_to_domains(struct pm_domain_device data[],
-				    int size)
-{
-	struct gpd_timing_data latencies = {
-		.stop_latency_ns = DEFAULT_DEV_LATENCY_NS,
-		.start_latency_ns = DEFAULT_DEV_LATENCY_NS,
-		.save_state_latency_ns = DEFAULT_DEV_LATENCY_NS,
-		.restore_state_latency_ns = DEFAULT_DEV_LATENCY_NS,
-	};
-	int j;
-
-	for (j = 0; j < size; j++)
-		rmobile_add_device_to_domain_td(data[j].domain_name,
-						data[j].pdev, &latencies);
-}
-
-#else /* !CONFIG_ARCH_SHMOBILE_LEGACY */
-
 static int rmobile_pd_suspend_busy(void)
 {
 	/*
@@ -436,5 +399,3 @@ static int __init rmobile_init_pm_domains(void)
 }
 
 core_initcall(rmobile_init_pm_domains);
-
-#endif /* !CONFIG_ARCH_SHMOBILE_LEGACY */
diff --git a/arch/arm/mach-shmobile/pm-rmobile.h b/arch/arm/mach-shmobile/pm-rmobile.h
index 3992b619c1278dcc..30a4a421ee315b98 100644
--- a/arch/arm/mach-shmobile/pm-rmobile.h
+++ b/arch/arm/mach-shmobile/pm-rmobile.h
@@ -31,28 +31,4 @@ struct pm_domain_device {
 	struct platform_device *pdev;
 };
 
-#if defined(CONFIG_PM_RMOBILE) && defined(CONFIG_ARCH_SHMOBILE_LEGACY)
-extern void rmobile_init_domains(struct rmobile_pm_domain domains[], int num);
-extern void rmobile_add_device_to_domain_td(const char *domain_name,
-					    struct platform_device *pdev,
-					    struct gpd_timing_data *td);
-
-static inline void rmobile_add_device_to_domain(const char *domain_name,
-						struct platform_device *pdev)
-{
-	rmobile_add_device_to_domain_td(domain_name, pdev, NULL);
-}
-
-extern void rmobile_add_devices_to_domains(struct pm_domain_device data[],
-					   int size);
-#else
-
-#define rmobile_init_domains(domains, num) do { } while (0)
-#define rmobile_add_device_to_domain_td(name, pdev, td) do { } while (0)
-#define rmobile_add_device_to_domain(name, pdev) do { } while (0)
-
-static inline void rmobile_add_devices_to_domains(struct pm_domain_device d[],
-						  int size) {}
-#endif /* CONFIG_PM_RMOBILE */
-
 #endif /* PM_RMOBILE_H */
-- 
1.9.1


  parent reply	other threads:[~2015-06-17  9:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17  9:31 [PATCH 00/15] ARM: shmobile: Remove legacy sh73a0/kzm9g and r8a7740/armadillo Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 01/15] ARM: shmobile: Remove legacy board code for KZM-A9-GT Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 02/15] ARM: shmobile: Remove legacy kzm9g_defconfig Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 03/15] ARM: shmobile: Drop sh73a0-kzm9g.dtb for legacy builds Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 04/15] ARM: shmobile: Remove legacy SoC code for SH-Mobile AG5 Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 05/15] ARM: shmobile: Remove legacy board code for Armadillo-800 EVA Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 06/15] ARM: shmobile: Remove legacy armadillo800eva_defconfig Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 07/15] ARM: shmobile: Drop r8a7740-armadillo800eva.dtb for legacy builds Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 08/15] ARM: shmobile: Remove legacy SoC code for R-Mobile A1 Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 09/15] ARM: shmobile: Remove unused dma-register.h Geert Uytterhoeven
2015-06-17  9:31 ` Geert Uytterhoeven [this message]
2015-06-17  9:31 ` [PATCH 11/15] ARM: shmobile: Remove obsolete zboot support Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 12/15] pinctrl: sh-pfc: sh73a0: Remove obsolete multi-platform check Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 13/15] pinctrl: sh-pfc: Remove obsolete sh73a0 platform_device_id entry Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 14/15] pinctrl: sh-pfc: r8a7740: Remove obsolete multi-platform check Geert Uytterhoeven
2015-06-17  9:31 ` [PATCH 15/15] pinctrl: sh-pfc: Remove obsolete r8a7740 platform_device_id entry Geert Uytterhoeven
2015-06-19  3:41 ` [PATCH 00/15] ARM: shmobile: Remove legacy sh73a0/kzm9g and r8a7740/armadillo Simon Horman
2015-06-19  7:30   ` Geert Uytterhoeven
2015-06-19  8:17     ` Simon Horman
2015-07-13 10:00     ` Linus Walleij
2015-07-13 10:06       ` Geert Uytterhoeven
2015-06-19  9:05   ` Laurent Pinchart

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=1434533491-21979-11-git-send-email-geert+renesas@glider.be \
    --to=geert+renesas@glider.be \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).