dm: spi: Fix spi_free_slave() freed memory write
[platform/kernel/u-boot.git] / drivers / reset / reset-mtmips.c
index a79a4ac..848425a 100644 (file)
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 
 struct mtmips_reset_priv {
@@ -57,7 +58,7 @@ static int mtmips_reset_probe(struct udevice *dev)
        return 0;
 }
 
-static int mtmips_reset_ofdata_to_platdata(struct udevice *dev)
+static int mtmips_reset_of_to_plat(struct udevice *dev)
 {
        struct mtmips_reset_priv *priv = dev_get_priv(dev);
 
@@ -77,8 +78,8 @@ U_BOOT_DRIVER(mtmips_reset) = {
        .name = "mtmips-reset",
        .id = UCLASS_RESET,
        .of_match = mtmips_reset_ids,
-       .ofdata_to_platdata = mtmips_reset_ofdata_to_platdata,
+       .of_to_plat = mtmips_reset_of_to_plat,
        .probe = mtmips_reset_probe,
-       .priv_auto_alloc_size = sizeof(struct mtmips_reset_priv),
+       .priv_auto      = sizeof(struct mtmips_reset_priv),
        .ops = &mtmips_reset_ops,
 };