usb: add isp1760 family driver
[platform/kernel/u-boot.git] / drivers / mailbox / sandbox-mbox.c
index 1b7ac23..87d38de 100644 (file)
@@ -1,12 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2016, NVIDIA CORPORATION.
- *
- * SPDX-License-Identifier: GPL-2.0
  */
 
 #include <common.h>
 #include <dm.h>
-#include <mailbox_uclass.h>
+#include <log.h>
+#include <mailbox-uclass.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/mbox.h>
 
@@ -88,7 +89,7 @@ static const struct udevice_id sandbox_mbox_ids[] = {
 
 struct mbox_ops sandbox_mbox_mbox_ops = {
        .request = sandbox_mbox_request,
-       .free = sandbox_mbox_free,
+       .rfree = sandbox_mbox_free,
        .send = sandbox_mbox_send,
        .recv = sandbox_mbox_recv,
 };
@@ -99,6 +100,6 @@ U_BOOT_DRIVER(sandbox_mbox) = {
        .of_match = sandbox_mbox_ids,
        .bind = sandbox_mbox_bind,
        .probe = sandbox_mbox_probe,
-       .priv_auto_alloc_size = sizeof(struct sandbox_mbox),
+       .priv_auto      = sizeof(struct sandbox_mbox),
        .ops = &sandbox_mbox_mbox_ops,
 };