diff options
author | Tom Rini <trini@konsulko.com> | 2017-10-09 20:19:39 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-09 20:19:39 -0400 |
commit | ebdd65258bad89b2da6cce4265c858ee0d5a9440 (patch) | |
tree | f2002a9b676849b0697ab9cb494b7ed4f45e8130 /drivers/gpio/mxc_gpio.c | |
parent | 74d90d17eebfeeefd91776e3deb7901c122bef7f (diff) | |
parent | 04d0da51578e12bd7c490aa70ed581ee5f9dcfea (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/gpio/mxc_gpio.c')
-rw-r--r-- | drivers/gpio/mxc_gpio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 0eb6c600f1e..c480eba9407 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -304,13 +304,18 @@ static int mxc_gpio_bind(struct udevice *dev) addr = devfdt_get_addr(dev); if (addr == FDT_ADDR_T_NONE) - return -ENODEV; + return -EINVAL; /* * TODO: * When every board is converted to driver model and DT is supported, * this can be done by auto-alloc feature, but not using calloc * to alloc memory for platdata. + * + * For example mxc_plat below uses platform data rather than device + * tree. + * + * NOTE: DO NOT COPY this code if you are using device tree. */ plat = calloc(1, sizeof(*plat)); if (!plat) |