travis: Move keystone 3 (k3) boards into the k2 job
[platform/kernel/u-boot.git] / drivers / reset / reset-meson.c
index 5324f86..31aa4d4 100644 (file)
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Amlogic Meson Reset Controller driver
  *
  * Copyright (c) 2018 BayLibre, SAS.
  * Author: Neil Armstrong <narmstrong@baylibre.com>
- *
- * SPDX-License-Identifier: GPL-2.0
  */
 
 #include <common.h>
@@ -70,6 +69,7 @@ struct reset_ops meson_reset_ops = {
 
 static const struct udevice_id meson_reset_ids[] = {                          
        { .compatible = "amlogic,meson-gxbb-reset" },                                  
+       { .compatible = "amlogic,meson-axg-reset" },
        { }                                                                     
 };  
 
@@ -77,7 +77,7 @@ static int meson_reset_probe(struct udevice *dev)
 {
        struct meson_reset_priv *priv = dev_get_priv(dev);
        
-       return regmap_init_mem(dev, &priv->regmap);
+       return regmap_init_mem(dev_ofnode(dev), &priv->regmap);
 }
 
 U_BOOT_DRIVER(meson_reset) = {