Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754610Ab0KIKDR (ORCPT ); Tue, 9 Nov 2010 05:03:17 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:54237 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966Ab0KIKDP (ORCPT ); Tue, 9 Nov 2010 05:03:15 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=msmAH3SqGz0d6yVhL6s5LgV8G7Kr9Ff2dbnzTHZIWx+IOio85qXrqcWs3lASoH7OMH 75JL6OJtbvT0fL4KamL4gAT3FSfCsSgXKy8NBh7blPqqEgncnIhQhMpqX+LKYwPiWxln lwt7jUIeyLRFGng9RaftTnscuGz9PamR7B/jA= Subject: Re: [PATCH] mxcmmc: Add the ability to bind a regulator to manage the MMC card voltage From: Alberto Panizzo To: Linus Walleij Cc: Sascha Hauer , Daniel Mack , Andrew Morton , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Eric =?ISO-8859-1?Q?B=E9nard?= , Fabio Estevam , linux-kernel , linux-mmc In-Reply-To: References: <1288656337.29881.13.camel@realization> Content-Type: text/plain; charset="UTF-8" Date: Tue, 09 Nov 2010 11:03:08 +0100 Message-ID: <1289296988.3020.19.camel@realization> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 41 On lun, 2010-11-08 at 23:12 +0100, Linus Walleij wrote: > 2010/11/2 Alberto Panizzo : > > > +static inline void mxcmci_init_ocr(struct mxcmci_host *host) > > +{ > > +#ifdef CONFIG_REGULATOR > > + host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc"); > > + > > + if (IS_ERR(host->vcc)) { > > + host->vcc = NULL; > > + } else { > > + host->mmc->ocr_avail = mmc_regulator_get_ocrmask(host->vcc); > > + if (host->pdata && host->pdata->ocr_avail) > > + dev_warn(mmc_dev(host->mmc), > > + "pdata->ocr_avail will not be used\n"); > > + } > > +#endif > > You don't need these #ifdef CONFIG_REGULATOR guardposts > anymore. I implemented stub functions for the ocrmask functions > for 2.6.37. Ehm.. thank you really for pointing me this, because I've also used the old API breaking the build in the -next branch.. A Fix will be posted as soon as possible! Thanks Linus! Best regards, -- Alberto! Be Persistent! - Greg Kroah-Hartman (FOSDEM 2010) -- 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/