X-Git-Url: https://repo.jachan.dev/u-boot.git/blobdiff_plain/caf2233b281c03e3e359061a3dfa537d8a25c273..78128d52dfca9fff53770c7aed2e4673070c5978:/drivers/gpio/bcm2835_gpio.c diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c index d68f8df32d..0dff9ac711 100644 --- a/drivers/gpio/bcm2835_gpio.c +++ b/drivers/gpio/bcm2835_gpio.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2012 Vikram Narayananan * - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -122,7 +121,7 @@ static int bcm2835_gpio_ofdata_to_platdata(struct udevice *dev) struct bcm2835_gpio_platdata *plat = dev_get_platdata(dev); fdt_addr_t addr; - addr = devfdt_get_addr(dev); + addr = dev_read_addr(dev); if (addr == FDT_ADDR_T_NONE) return -EINVAL;