mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
6e2b0f8c9b
commit
9e01a00958
1 changed files with 8 additions and 0 deletions
|
@ -450,9 +450,17 @@ static int ixp4xx_qmgr_remove(struct platform_device *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct of_device_id ixp4xx_qmgr_of_match[] = {
|
||||||
|
{
|
||||||
|
.compatible = "intel,ixp4xx-ahb-queue-manager",
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
};
|
||||||
|
|
||||||
static struct platform_driver ixp4xx_qmgr_driver = {
|
static struct platform_driver ixp4xx_qmgr_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ixp4xx-qmgr",
|
.name = "ixp4xx-qmgr",
|
||||||
|
.of_match_table = of_match_ptr(ixp4xx_qmgr_of_match),
|
||||||
},
|
},
|
||||||
.probe = ixp4xx_qmgr_probe,
|
.probe = ixp4xx_qmgr_probe,
|
||||||
.remove = ixp4xx_qmgr_remove,
|
.remove = ixp4xx_qmgr_remove,
|
||||||
|
|
Loading…
Reference in a new issue