Message ID | 1363959023-25661-1-git-send-email-thomas.petazzoni@free-electrons.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi, On Fri, Mar 22 2013, Thomas Petazzoni wrote: > Ralph Droms <rdroms@gmail.com> reported that 3.9-rc was breaking the > SDIO interface on his Sheevaplug platform, and that the recent changes > to the mvsdio driver are responsible for this breakage. Precisely, the > regression has been introduced by 07728b77c03d (mmc: mvsdio: use > slot-gpio for card detect gpio). Thanks, pushed to mmc-next for 3.9-rc. - Chris.
diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 145cdaf..1e4d567 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c @@ -741,8 +741,8 @@ static int __init mvsd_probe(struct platform_device *pdev) goto out; } host->base_clock = mvsd_data->clock / 2; - gpio_card_detect = mvsd_data->gpio_card_detect; - gpio_write_protect = mvsd_data->gpio_write_protect; + gpio_card_detect = mvsd_data->gpio_card_detect ? : -EINVAL; + gpio_write_protect = mvsd_data->gpio_write_protect ? : -EINVAL; } mmc->ops = &mvsd_ops;