summaryrefslogtreecommitdiffstats
path: root/drivers/mailbox/arm_mhu.c
diff options
context:
space:
mode:
authorAndrew Bresticker2015-05-04 19:36:35 +0200
committerJassi Brar2015-05-12 05:48:16 +0200
commit05ae797566a66d159cf1e2ee11bf3f6fae40c8eb (patch)
tree409e6262f89399295e2e1e6d35345ac5fe8c170d /drivers/mailbox/arm_mhu.c
parentmailbox: altera: Add dependency on HAS_IOMEM (diff)
downloadkernel-qcow2-linux-05ae797566a66d159cf1e2ee11bf3f6fae40c8eb.tar.gz
kernel-qcow2-linux-05ae797566a66d159cf1e2ee11bf3f6fae40c8eb.tar.xz
kernel-qcow2-linux-05ae797566a66d159cf1e2ee11bf3f6fae40c8eb.zip
mailbox: Make mbox_chan_ops const
The mailbox controller's channel ops ought to be read-only. Update all the mailbox drivers to make their mbox_chan_ops const as well. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Cc: Ashwin Chaugule <ashwin.chaugule@linaro.org> Cc: Ley Foon Tan <lftan@altera.com> Acked-by: Suman Anna <s-anna@ti.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox/arm_mhu.c')
-rw-r--r--drivers/mailbox/arm_mhu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/arm_mhu.c b/drivers/mailbox/arm_mhu.c
index ac693c635357..d9e99f981aa9 100644
--- a/drivers/mailbox/arm_mhu.c
+++ b/drivers/mailbox/arm_mhu.c
@@ -110,7 +110,7 @@ static void mhu_shutdown(struct mbox_chan *chan)
free_irq(mlink->irq, chan);
}
-static struct mbox_chan_ops mhu_ops = {
+static const struct mbox_chan_ops mhu_ops = {
.send_data = mhu_send_data,
.startup = mhu_startup,
.shutdown = mhu_shutdown,