aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-02-10 17:41:49 -0500
committerLinus Walleij <linus.walleij@linaro.org>2019-04-23 10:02:16 -0400
commit9e01a00958405f59e0a85fd16eb4e879e983ea74 (patch)
tree783fd40f8c99f21a0d5f24e854e9cf4711eb006f
parent6e2b0f8c9bc8897f6260981cff231632c20d3048 (diff)
soc: ixp4xx: qmgr: Add DT probe code
This makes the queue manager driver able to probe from the device tree. It only needs to get a memory resource and two interrupts and the platform device provides these as resources, so all is pretty simple. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/soc/ixp4xx/ixp4xx-qmgr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/soc/ixp4xx/ixp4xx-qmgr.c b/drivers/soc/ixp4xx/ixp4xx-qmgr.c
index 64572f2d6ff0..13a8a13c9b01 100644
--- a/drivers/soc/ixp4xx/ixp4xx-qmgr.c
+++ b/drivers/soc/ixp4xx/ixp4xx-qmgr.c
@@ -450,9 +450,17 @@ static int ixp4xx_qmgr_remove(struct platform_device *pdev)
450 return 0; 450 return 0;
451} 451}
452 452
453static const struct of_device_id ixp4xx_qmgr_of_match[] = {
454 {
455 .compatible = "intel,ixp4xx-ahb-queue-manager",
456 },
457 {},
458};
459
453static struct platform_driver ixp4xx_qmgr_driver = { 460static struct platform_driver ixp4xx_qmgr_driver = {
454 .driver = { 461 .driver = {
455 .name = "ixp4xx-qmgr", 462 .name = "ixp4xx-qmgr",
463 .of_match_table = of_match_ptr(ixp4xx_qmgr_of_match),
456 }, 464 },
457 .probe = ixp4xx_qmgr_probe, 465 .probe = ixp4xx_qmgr_probe,
458 .remove = ixp4xx_qmgr_remove, 466 .remove = ixp4xx_qmgr_remove,