Convert CONFIG_TWL4030_LED et al to Kconfig
[oweals/u-boot.git] / drivers / misc / altera_sysid.c
index ed6d462c95d4c1cea9575bad588026fc43c7fd68..883b2a35e0793221ef628512ff99652f5e05fa9b 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
  * Scott McNutt <smcnutt@psyent.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -74,7 +73,7 @@ static int altera_sysid_ofdata_to_platdata(struct udevice *dev)
 {
        struct altera_sysid_platdata *plat = dev_get_platdata(dev);
 
-       plat->regs = map_physmem(dev_get_addr(dev),
+       plat->regs = map_physmem(devfdt_get_addr(dev),
                                 sizeof(struct altera_sysid_regs),
                                 MAP_NOCACHE);