Re: platform_bus: Allow runtime PM by default

From: Mark Brown
Date: Fri Apr 23 2010 - 06:57:59 EST


On Thu, Apr 22, 2010 at 04:53:53PM -0700, Greg KH wrote:
> On Fri, Mar 26, 2010 at 05:42:50PM +0000, Mark Brown wrote:

> > Change the default implementation to the standard pm_generic_runtime
> > one, allowing drivers to use runtime PM without per-architecture
> > changes.

> That's nice, but it breaks the build on my system:
> CC drivers/base/platform.o
> drivers/base/platform.c: In function âplatform_pm_runtime_suspendâ:
> drivers/base/platform.c:970: error: implicit declaration of function âpm_generic_runtime_suspendâ
> drivers/base/platform.c: In function âplatform_pm_runtime_resumeâ:
> drivers/base/platform.c:975: error: implicit declaration of function âpm_generic_runtime_resumeâ
> drivers/base/platform.c: In function âplatform_pm_runtime_idleâ:
> drivers/base/platform.c:980: error: implicit declaration of function âpm_generic_runtime_idleâ
> make[1]: *** [drivers/base/platform.o] Error 1
> make: *** [_module_drivers/base] Error 2

> Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is
in Linus' tree - which kernel version are you building against and with
what config? Things work fine for me in -next...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/