From: Tom Rini Date: Wed, 20 Apr 2016 10:47:42 -0400 Subject: [U-Boot] [PATCH 1/5] drivers: mmc: omap_hsmmc: request cd and wp gpios when DM_MMC is defined In-Reply-To: References: <1459771085-5951-1-git-send-email-mugunthanvnm@ti.com> <1459771085-5951-2-git-send-email-mugunthanvnm@ti.com> Message-ID: <20160420144742.GB29539@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Apr 20, 2016 at 08:40:01AM -0600, Simon Glass wrote: > Hi Muganthan, > > On 4 April 2016 at 05:58, Mugunthan V N wrote: > > Add request gpio for CD and WP gpios, so that the gpio can be > > used for the respective purposes. > > > > Signed-off-by: Mugunthan V N > > --- > > drivers/mmc/omap_hsmmc.c | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c > > index 1071314..85a832b 100644 > > --- a/drivers/mmc/omap_hsmmc.c > > +++ b/drivers/mmc/omap_hsmmc.c > > @@ -820,6 +820,11 @@ static int omap_hsmmc_probe(struct udevice *dev) > > if (mmc == NULL) > > return -1; > > > > +#ifdef OMAP_HSMMC_USE_GPIO > > + gpio_request_by_name(dev, "cd-gpios", 0, &priv->cd_gpio, GPIOD_IS_IN); > > + gpio_request_by_name(dev, "wp-gpios", 0, &priv->wp_gpio, GPIOD_IS_IN); > > Please check errors here. ... in a follow-up patch, I have this queued currently. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: