]> Git Repo - u-boot.git/blobdiff - drivers/gpio/bcm2835_gpio.c
dtoc: Tidy up more Python style in dtb_platdata
[u-boot.git] / drivers / gpio / bcm2835_gpio.c
index d68f8df32d55fdff1b44f28eebb62b9cd1026dbe..0dff9ac711d724d51d207db9a98b4e8d32472dd5 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2012 Vikram Narayananan
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -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;
 
This page took 0.022656 seconds and 4 git commands to generate.