From mboxrd@z Thu Jan 1 00:00:00 1970 From: pawel.moll@arm.com (Pawel Moll) Date: Fri, 13 Apr 2012 16:05:00 +0100 Subject: [PATCH 6/7] MMC: mmci: Enable Device Tree support for ux500 variants In-Reply-To: <4F883E40.6000905@linaro.org> References: <1334325909-5779-1-git-send-email-lee.jones@linaro.org> <1334325909-5779-7-git-send-email-lee.jones@linaro.org> <1334328122.27644.15.camel@hornet> <201204131451.10638.arnd@arndb.de> <4F883E40.6000905@linaro.org> Message-ID: <1334329500.27644.18.camel@hornet> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, 2012-04-13 at 15:54 +0100, Lee Jones wrote: > On 13/04/12 15:51, Arnd Bergmann wrote: > > On Friday 13 April 2012, Pawel Moll wrote: > >> On Fri, 2012-04-13 at 15:05 +0100, Lee Jones wrote: > >>> + of_property_read_u32(np, "wp-gpios",&pdata->gpio_wp); > >>> + if (!pdata->gpio_wp) > >>> + pdata->gpio_wp = -1; > >>> + > >>> + of_property_read_u32(np, "cd-gpios",&pdata->gpio_cd); > >>> + if (!pdata->gpio_cd) > >>> + pdata->gpio_cd = -1; > >> > >> I think you should use of_gpio_named_count(np, "XX-gpios") here rather > >> then of_property_read() - there's more to GPIOs than just a number... Of course I meant of_get_named_gpio(np, "XX-gpios", 0) not _named_count ;-) > > Hmm, that part was done right in the git tree, I guess something > > went wrong when sending out the series. > > Different patch series. > > The GPIO bindings aren't in yet. Once this one is accepted, I'll fire > off the second patch-set. Em, I'm not sure I'm following... Why not use the proper API immediately? Generally, except for that, looks good to me. Pawe?