mailbox/omap: use of_device_get_match_data() to get match data
authorSuman Anna <s-anna@ti.com>
Wed, 11 Jul 2018 23:42:12 +0000 (18:42 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 3 Aug 2018 13:27:15 +0000 (18:57 +0530)
commitea2ec1e80f78e5f1d6bd04315a2a0bf0646d8548
tree5913dfa3afd83d7e3f8fab56d263ece1c0f9322e
parent2ad5157650b446f14a719280ba3670303bc4f439
mailbox/omap: use of_device_get_match_data() to get match data

The OMAP Mailbox driver is directly using an integer value as
match data for distinguishing the interrupt register layout
between OMAP2 and OMAP4+ SoCs. Introduce a dedicated structure
for storing this match data, and simplify the probe function by
using the of_device_get_match_data() function. This allows the
driver to scale for 64-bit platforms by eliminating the unnecessary
type-casting between a u32 and a void pointer types.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/omap-mailbox.c