Commit 6efb4958 authored by Ben Levinsky's avatar Ben Levinsky Committed by Jassi Brar

mailbox: zynqmp: Move of_match structure closer to usage

The of_match structure zynqmp_ipi_of_match is now adjacent to where it
used in the zynqmp_ipi_driver structure for readability.
Signed-off-by: default avatarBen Levinsky <ben.levinsky@amd.com>
Signed-off-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
parent e67572cd
...@@ -415,12 +415,6 @@ static struct mbox_chan *zynqmp_ipi_of_xlate(struct mbox_controller *mbox, ...@@ -415,12 +415,6 @@ static struct mbox_chan *zynqmp_ipi_of_xlate(struct mbox_controller *mbox,
return chan; return chan;
} }
static const struct of_device_id zynqmp_ipi_of_match[] = {
{ .compatible = "xlnx,zynqmp-ipi-mailbox" },
{},
};
MODULE_DEVICE_TABLE(of, zynqmp_ipi_of_match);
/** /**
* zynqmp_ipi_mbox_get_buf_res - Get buffer resource from the IPI dev node * zynqmp_ipi_mbox_get_buf_res - Get buffer resource from the IPI dev node
* *
...@@ -695,6 +689,12 @@ static void zynqmp_ipi_remove(struct platform_device *pdev) ...@@ -695,6 +689,12 @@ static void zynqmp_ipi_remove(struct platform_device *pdev)
zynqmp_ipi_free_mboxes(pdata); zynqmp_ipi_free_mboxes(pdata);
} }
static const struct of_device_id zynqmp_ipi_of_match[] = {
{ .compatible = "xlnx,zynqmp-ipi-mailbox" },
{},
};
MODULE_DEVICE_TABLE(of, zynqmp_ipi_of_match);
static struct platform_driver zynqmp_ipi_driver = { static struct platform_driver zynqmp_ipi_driver = {
.probe = zynqmp_ipi_probe, .probe = zynqmp_ipi_probe,
.remove_new = zynqmp_ipi_remove, .remove_new = zynqmp_ipi_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment