From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH] MMC: OMAP HS-MMC: convert to dev_pm_ops Date: Fri, 14 May 2010 09:51:21 -0700 Message-ID: <87ljbmmnp2.fsf@deeprootsystems.com> References: <1273615036-4516-1-git-send-email-khilman@deeprootsystems.com> <87k4r74p01.fsf@linux-g6p1.site> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <87k4r74p01.fsf@linux-g6p1.site> (Matt Fleming's message of "Thu\, 13 May 2010 19\:48\:14 +0100") Sender: linux-mmc-owner@vger.kernel.org To: Matt Fleming Cc: linux-omap@vger.kernel.org, Madhusudhan Chikkature , Adrian Hunter , Andrew Morton , Tony Lindgren , Denis Karpov , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org List-Id: linux-omap@vger.kernel.org Matt Fleming writes: > On Tue, 11 May 2010 14:57:16 -0700, Kevin Hilman wrote: >> >> Note that dev_pm_ops version of the suspend hook no longer takes a >> 'state' argument. However, the MMC core function mmc_suspend_host() >> still takes a 'state' argument, but it is unused, so a dummy >> state variable was created to pass to the MMC core. > > Hmm.. instead of passing this dummy state argument why don't we just > remove the argument from mmc_suspend_host()? Like you said, it's unused, > so I don't see a reason to keep it around? I don't see a reason either, but it requires patching the MMC core as well as all the users. As I'm not an MMC core person, I thought this best left to someone in that domain. Fixing the core and callers could easily be done on top of this patch. Kevin