]> git.sur5r.net Git - u-boot/blobdiff - drivers/reset/sti-reset.c
mtd: nand: mxs_nand: use self init
[u-boot] / drivers / reset / sti-reset.c
index 0fc5a288026f204086a9cd6d2b30ef1370990b67..d8cc485ce6a544756bba3659ad8c79aabff42a8d 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
  * Author(s): Patrice Chotard, <patrice.chotard@st.com> for STMicroelectronics.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -218,7 +217,7 @@ phys_addr_t sti_reset_get_regmap(const char *compatible)
                return -ENODEV;
        }
 
-       return regmap->base;
+       return regmap->ranges[0].start;
 }
 
 static int sti_reset_program_hw(struct reset_ctl *reset_ctl, int assert)