Re: [PATCH 10/10] ARM: Use struct syscore_ops instead of sysdevsfor PM in timer and leds

From: Stephen Boyd
Date: Mon Mar 14 2011 - 05:06:45 EST


On 3/13/2011 6:04 AM, Rafael J. Wysocki wrote:
#if defined(CONFIG_PM)&& !defined(CONFIG_GENERIC_CLOCKEVENTS)
-static int timer_suspend(struct sys_device *dev, pm_message_t state)
+static int timer_suspend(void)
{
- struct sys_timer *timer = container_of(dev, struct sys_timer, dev);
-
- if (timer->suspend != NULL)
+ if (system_timer->suspend)
timer->suspend();


Shouldn't this be system_timer->suspend() ?

--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

--
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/