X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fgpio%2Ftegra186_gpio.c;h=6626b5415a389d97176032e29f92e7bb1dafbd7d;hb=dbd8a8dfe7fa03300bd8d56b1d1e87d1089550b5;hp=c5a7e13cceb8f88aba4d52f3a4920232c586738e;hpb=821560fd8e43eecc208c1c52ad24faadb6b52703;p=oweals%2Fu-boot.git diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c index c5a7e13cce..6626b5415a 100644 --- a/drivers/gpio/tegra186_gpio.c +++ b/drivers/gpio/tegra186_gpio.c @@ -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 @@ -17,8 +16,6 @@ #include #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; @@ -284,5 +281,4 @@ U_BOOT_DRIVER(tegra186_gpio) = { .bind = tegra186_gpio_bind, .probe = tegra186_gpio_probe, .ops = &tegra186_gpio_ops, - .flags = DM_FLAG_PRE_RELOC, };