X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fmailbox%2Ftegra-hsp.c;h=f82e6d3d16684ebf1077c9e6104f0ea1a1dc0cde;hb=abdbefba2a4e9666f798de13b4b88021f23b19f3;hp=bd2ec411c7587da31ef0f4d82bfbaa13d6d01031;hpb=b07d044d5bfa8c440b172eb3f8a9d537f82e21b6;p=oweals%2Fu-boot.git diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index bd2ec411c7..f82e6d3d16 100644 --- a/drivers/mailbox/tegra-hsp.c +++ b/drivers/mailbox/tegra-hsp.c @@ -1,14 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2016, NVIDIA CORPORATION. - * - * SPDX-License-Identifier: GPL-2.0 */ #include +#include +#include #include #include #include #include +#include #define TEGRA_HSP_INT_DIMENSIONING 0x380 #define TEGRA_HSP_INT_DIMENSIONING_NSI_SHIFT 16 @@ -36,8 +38,6 @@ struct tegra_hsp { uint32_t db_base; }; -DECLARE_GLOBAL_DATA_PTR; - static uint32_t *tegra_hsp_reg(struct tegra_hsp *thsp, uint32_t db_id, uint32_t reg) { @@ -178,7 +178,7 @@ static const struct udevice_id tegra_hsp_ids[] = { struct mbox_ops tegra_hsp_mbox_ops = { .of_xlate = tegra_hsp_of_xlate, .request = tegra_hsp_request, - .free = tegra_hsp_free, + .rfree = tegra_hsp_free, .send = tegra_hsp_send, .recv = tegra_hsp_recv, };