delete Kbuild "select" of long-dead SPL_DISABLE_OF_CONTROL
[oweals/u-boot.git] / drivers / sysreset / sysreset_sti.c
index 910f4865168059a0af86f6486ab1e145ac89bdd8..9996716f13d6016ebaa490352f3e7fd56b22d1f3 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>
@@ -59,7 +58,7 @@ static int sti_sysreset_probe(struct udevice *dev)
                return -ENODEV;
        }
 
-       priv->base = regmap->base;
+       priv->base = regmap->ranges[0].start;
 
        return 0;
 }