From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [PATCH 10/10] ARM: Use struct syscore_ops instead of sysdevs for PM in timer and leds Date: Mon, 14 Mar 2011 02:06:36 -0700 Message-ID: <4D7DDA9C.9020700__8733.95069870657$1300114256$gmane$org@codeaurora.org> References: <201103100131.58206.rjw@sisk.pl> <201103122212.40828.rjw@sisk.pl> <201103131402.48129.rjw@sisk.pl> <201103131404.33311.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201103131404.33311.rjw@sisk.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: "Rafael J. Wysocki" Cc: Russell King , linux-sh@vger.kernel.org, Greg KH , LKML , Kay Sievers , Linux PM mailing list List-Id: linux-pm@vger.kernel.org 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.