Commit e00797f2 authored by Linus Walleij's avatar Linus Walleij

soc: ixp4xx: npe: Add DT probe code

This makes the NPE driver able to probe from the device tree.
It only needs to get three memory resources and the plaform
device provide these, so all is pretty simple.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 3107fbf7
...@@ -729,9 +729,17 @@ static int ixp4xx_npe_remove(struct platform_device *pdev) ...@@ -729,9 +729,17 @@ static int ixp4xx_npe_remove(struct platform_device *pdev)
return 0; return 0;
} }
static const struct of_device_id ixp4xx_npe_of_match[] = {
{
.compatible = "intel,ixp4xx-network-processing-engine",
},
{},
};
static struct platform_driver ixp4xx_npe_driver = { static struct platform_driver ixp4xx_npe_driver = {
.driver = { .driver = {
.name = "ixp4xx-npe", .name = "ixp4xx-npe",
.of_match_table = of_match_ptr(ixp4xx_npe_of_match),
}, },
.probe = ixp4xx_npe_probe, .probe = ixp4xx_npe_probe,
.remove = ixp4xx_npe_remove, .remove = ixp4xx_npe_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