diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c index ff9a73585..5654c5e98 100755 --- a/drivers/firmware/tegra/bpmp.c +++ b/drivers/firmware/tegra/bpmp.c @@ -25,6 +25,12 @@ #define MSG_RING BIT(1) #define TAG_SZ 32 +static inline struct tegra_bpmp * +mbox_client_to_bpmp(struct mbox_client *client) +{ + return container_of(client, struct tegra_bpmp, mbox.client); +} + static inline const struct tegra_bpmp_ops * channel_to_ops(struct tegra_bpmp_channel *channel) {