提交 6d16eada 编写于 作者: Á Álvaro Fernández Rojas 提交者: David S. Miller

net: dsa: b53: spi: allow device tree probing

Add missing of_match_table to allow device tree probing.
Signed-off-by: NÁlvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1bf34366
...@@ -324,9 +324,22 @@ static int b53_spi_remove(struct spi_device *spi) ...@@ -324,9 +324,22 @@ static int b53_spi_remove(struct spi_device *spi)
return 0; return 0;
} }
static const struct of_device_id b53_spi_of_match[] = {
{ .compatible = "brcm,bcm5325" },
{ .compatible = "brcm,bcm5365" },
{ .compatible = "brcm,bcm5395" },
{ .compatible = "brcm,bcm5397" },
{ .compatible = "brcm,bcm5398" },
{ .compatible = "brcm,bcm53115" },
{ .compatible = "brcm,bcm53125" },
{ .compatible = "brcm,bcm53128" },
{ /* sentinel */ }
};
static struct spi_driver b53_spi_driver = { static struct spi_driver b53_spi_driver = {
.driver = { .driver = {
.name = "b53-switch", .name = "b53-switch",
.of_match_table = b53_spi_of_match,
}, },
.probe = b53_spi_probe, .probe = b53_spi_probe,
.remove = b53_spi_remove, .remove = b53_spi_remove,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册