mtd: spi: Add a new option SPL_SPI_FLASH_MTD to Kconfig
[oweals/u-boot.git] / drivers / mailbox / tegra-hsp.c
index 3d0362d587403c7cbcc698aad3cbd4580af92a81..9bee886561c5296cdd8a226ef7d6e1478db0c9bd 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2016, NVIDIA CORPORATION.
- *
- * SPDX-License-Identifier: GPL-2.0
  */
 
 #include <common.h>
@@ -36,8 +35,6 @@ struct tegra_hsp {
        uint32_t db_base;
 };
 
-DECLARE_GLOBAL_DATA_PTR;
-
 static uint32_t *tegra_hsp_reg(struct tegra_hsp *thsp, uint32_t db_id,
                               uint32_t reg)
 {
@@ -72,7 +69,7 @@ static int tegra_hsp_db_id(ulong chan_id)
 }
 
 static int tegra_hsp_of_xlate(struct mbox_chan *chan,
-                             struct fdtdec_phandle_args *args)
+                             struct ofnode_phandle_args *args)
 {
        debug("%s(chan=%p)\n", __func__, chan);
 
@@ -153,7 +150,7 @@ static int tegra_hsp_probe(struct udevice *dev)
 
        debug("%s(dev=%p)\n", __func__, dev);
 
-       thsp->regs = dev_get_addr(dev);
+       thsp->regs = devfdt_get_addr(dev);
        if (thsp->regs == FDT_ADDR_T_NONE)
                return -ENODEV;