Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mailbox: exynos: drop superfluous mbox setting per channel

The core initializes the 'mbox' field exactly like this, so don't
duplicate it in the driver.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Tested-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>

authored by

Wolfram Sang and committed by
Jassi Brar
8a19c5aa d2591db9

-4
-4
drivers/mailbox/exynos-mailbox.c
··· 99 99 struct mbox_controller *mbox; 100 100 struct mbox_chan *chans; 101 101 struct clk *pclk; 102 - int i; 103 102 104 103 exynos_mbox = devm_kzalloc(dev, sizeof(*exynos_mbox), GFP_KERNEL); 105 104 if (!exynos_mbox) ··· 127 128 mbox->dev = dev; 128 129 mbox->ops = &exynos_mbox_chan_ops; 129 130 mbox->of_xlate = exynos_mbox_of_xlate; 130 - 131 - for (i = 0; i < EXYNOS_MBOX_CHAN_COUNT; i++) 132 - chans[i].mbox = mbox; 133 131 134 132 exynos_mbox->mbox = mbox; 135 133