summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-06-20 20:03:51 -0400
committerTom Rini <trini@ti.com>2014-06-20 20:03:51 -0400
commit39b6d07fd7e692736cdb05a000b1c84ab43de4fb (patch)
tree72b3530f77de13dab378b5be9789edd952bc9e03 /drivers/gpio
parent45f0ad9545578b4436fdf04ba25a10173bcb75ef (diff)
parent22ec136325fdfc805b1e48e5ac8e17f23b4e9fc6 (diff)
downloadu-boot-imx-39b6d07fd7e692736cdb05a000b1c84ab43de4fb.zip
u-boot-imx-39b6d07fd7e692736cdb05a000b1c84ab43de4fb.tar.gz
u-boot-imx-39b6d07fd7e692736cdb05a000b1c84ab43de4fb.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-uclass.c2
-rw-r--r--drivers/gpio/sandbox.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c
index fa2c2fb..f1bbc58 100644
--- a/drivers/gpio/gpio-uclass.c
+++ b/drivers/gpio/gpio-uclass.c
@@ -58,7 +58,7 @@ int gpio_lookup_name(const char *name, struct udevice **devp,
uc_priv = dev->uclass_priv;
len = uc_priv->bank_name ? strlen(uc_priv->bank_name) : 0;
- if (!strncmp(name, uc_priv->bank_name, len)) {
+ if (!strncasecmp(name, uc_priv->bank_name, len)) {
if (strict_strtoul(name + len, 10, &offset))
continue;
if (devp)
diff --git a/drivers/gpio/sandbox.c b/drivers/gpio/sandbox.c
index 09cebe2..75ada5d 100644
--- a/drivers/gpio/sandbox.c
+++ b/drivers/gpio/sandbox.c
@@ -239,7 +239,7 @@ static int gpio_sandbox_probe(struct udevice *dev)
return 0;
}
-static const struct device_id sandbox_gpio_ids[] = {
+static const struct udevice_id sandbox_gpio_ids[] = {
{ .compatible = "sandbox,gpio" },
{ }
};