[PATCH 6/7] MMC: mmci: Enable Device Tree support for ux500 variants
Pawel Moll
pawel.moll at arm.com
Fri Apr 13 10:42:02 EDT 2012
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...
Cheers!
Paweł
More information about the linux-arm-kernel
mailing list