Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752493Ab1DRVnW (ORCPT ); Mon, 18 Apr 2011 17:43:22 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:33101 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751290Ab1DRVnT (ORCPT ); Mon, 18 Apr 2011 17:43:19 -0400 From: "Rafael J. Wysocki" To: Mike Frysinger Subject: Re: [PATCH 9/14] PM / Blackfin: Use struct syscore_ops instead of sysdevs for PM Date: Mon, 18 Apr 2011 23:43:41 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.39-rc3+; KDE/4.6.0; x86_64; ; ) Cc: LKML , Greg KH , Kay Sievers , Linux PM mailing list , Russell King , linux-omap@vger.kernel.org, Kevin Hilman , linux-arm-kernel@lists.infradead.org, Ben Dooks , Ralf Baechle , "Hans-Christian Egtvedt" , Guan Xuetao , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, Jiri Kosina , Konrad Rzeszutek Wilk , Jeremy Fitzhardinge References: <201103280125.11750.rjw@sisk.pl> <201104172311.59289.rjw@sisk.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201104182343.41702.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1210 Lines: 32 On Monday, April 18, 2011, Mike Frysinger wrote: > On Sun, Apr 17, 2011 at 17:11, Rafael J. Wysocki wrote: > > Convert some Blackfin architecture's code to using struct syscore_ops > > objects for power management instead of sysdev classes and sysdevs. > > > > This simplifies the code and reduces the kernel's memory footprint. > > It also is necessary for removing sysdevs from the kernel entirely in > > the future. > > looks straight forward enough ... > Acked-by: Mike Frysinger > > > +static struct syscore_ops nmi_syscore_ops = { > > .resume = nmi_wdt_resume, > > .suspend = nmi_wdt_suspend, > > }; > > a bit sad this couldnt be made const Well, that would trigger a compiler warning from register_syscore_ops(). However, I'm going to make that change change everywhere at once when all of the conversions have been made, since it looks like we're only going to have static syscore_ops. Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/