Skip to content

Commit 6efb495

Browse files
bentheredonethatJassi Brar
authored andcommitted
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: Ben Levinsky <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent e67572c commit 6efb495

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/mailbox/zynqmp-ipi-mailbox.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,6 @@ static struct mbox_chan *zynqmp_ipi_of_xlate(struct mbox_controller *mbox,
415415
return chan;
416416
}
417417

418-
static const struct of_device_id zynqmp_ipi_of_match[] = {
419-
{ .compatible = "xlnx,zynqmp-ipi-mailbox" },
420-
{},
421-
};
422-
MODULE_DEVICE_TABLE(of, zynqmp_ipi_of_match);
423-
424418
/**
425419
* zynqmp_ipi_mbox_get_buf_res - Get buffer resource from the IPI dev node
426420
*
@@ -695,6 +689,12 @@ static void zynqmp_ipi_remove(struct platform_device *pdev)
695689
zynqmp_ipi_free_mboxes(pdata);
696690
}
697691

692+
static const struct of_device_id zynqmp_ipi_of_match[] = {
693+
{ .compatible = "xlnx,zynqmp-ipi-mailbox" },
694+
{},
695+
};
696+
MODULE_DEVICE_TABLE(of, zynqmp_ipi_of_match);
697+
698698
static struct platform_driver zynqmp_ipi_driver = {
699699
.probe = zynqmp_ipi_probe,
700700
.remove_new = zynqmp_ipi_remove,

0 commit comments

Comments
 (0)