linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM / Domains: Change prototype for the ->attach_dev() callback
@ 2014-10-30 12:02 Ulf Hansson
  2014-10-30 12:17 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Ulf Hansson @ 2014-10-30 12:02 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, Pavel Machek, linux-pm
  Cc: linux-arm-kernel, linux-samsung-soc, Geert Uytterhoeven,
	Kevin Hilman, Alan Stern, Greg Kroah-Hartman, Tomasz Figa,
	Simon Horman, Magnus Damm, Ben Dooks, Kukjin Kim, Philipp Zabel,
	Mark Brown, Wolfram Sang, Russell King, Dmitry Torokhov,
	Jack Dai, Jinkun Hong, Aaron Lu, Sylwester Nawrocki, Ulf Hansson

Convert the prototype to return and int. This is just an initial step,
needed to support error handling.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---

This patch is intended as fix for 3.18 rc[n]. Why?

There are other SOC specific patches around that adds genpd support and which
implements the ->attach_dev() callback. To prevent having an "atomic" patch
during the next release cycle, let's change the prototype now instead.

Further patches will add the actual error handling in genpd and these can then
be reviewed and tested thoroughly.

---
 include/linux/pm_domain.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index 73e938b..d44f071 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -72,7 +72,7 @@ struct generic_pm_domain {
 	bool max_off_time_changed;
 	bool cached_power_down_ok;
 	struct gpd_cpuidle_data *cpuidle_data;
-	void (*attach_dev)(struct device *dev);
+	int (*attach_dev)(struct device *dev);
 	void (*detach_dev)(struct device *dev);
 };
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-11-15 11:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-30 12:02 [PATCH] PM / Domains: Change prototype for the ->attach_dev() callback Ulf Hansson
2014-10-30 12:17 ` Geert Uytterhoeven
2014-10-30 12:28 ` Pavel Machek
2014-10-30 20:04 ` Rafael J. Wysocki
2014-10-30 20:38   ` Kevin Hilman
2014-11-05  1:33     ` Dmitry Torokhov
2014-11-05  7:43       ` Geert Uytterhoeven
2014-11-05  7:54         ` Dmitry Torokhov
2014-11-05 22:43       ` Kevin Hilman
2014-11-05 22:49         ` Dmitry Torokhov
2014-11-05 23:21         ` Rafael J. Wysocki
2014-11-05 23:11           ` Kevin Hilman
2014-11-06  0:54             ` Rafael J. Wysocki
2014-11-14  8:17               ` Geert Uytterhoeven
2014-11-06  7:36             ` Geert Uytterhoeven
2014-11-06  9:55             ` Ulf Hansson
2014-11-14 23:48             ` Rafael J. Wysocki
2014-11-15 11:32               ` Geert Uytterhoeven

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).