]> git.sur5r.net Git - u-boot/blobdiff - drivers/gpio/tegra186_gpio.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / drivers / gpio / tegra186_gpio.c
index c5a7e13cceb8f88aba4d52f3a4920232c586738e..1f0e8d51dadacaf56d752e762a466956e4deb7e7 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2010-2016, NVIDIA CORPORATION.
  * (based on tegra_gpio.c)
- *
- * SPDX-License-Identifier: GPL-2.0
  */
 
 #include <common.h>
@@ -17,8 +16,6 @@
 #include <dt-bindings/gpio/gpio.h>
 #include "tegra186_gpio_priv.h"
 
-DECLARE_GLOBAL_DATA_PTR;
-
 struct tegra186_gpio_port_data {
        const char *name;
        uint32_t offset;
@@ -181,7 +178,7 @@ static int tegra186_gpio_bind(struct udevice *parent)
 
        regs = (uint32_t *)devfdt_get_addr_name(parent, "gpio");
        if (regs == (uint32_t *)FDT_ADDR_T_NONE)
-               return -ENODEV;
+               return -EINVAL;
 
        for (port = 0; port < ctlr_data->port_count; port++) {
                struct tegra186_gpio_platdata *plat;