' pm'和' of_match_table'在以下spi驱动程序代码中
static struct platform_driver omap2_mcspi_driver = {
.driver = {
.name = "omap2_mcspi",
.owner = THIS_MODULE,
.pm = &omap2_mcspi_pm_ops,
.of_match_table = omap_mcspi_of_match,
},
.probe = omap2_mcspi_probe,
.remove = omap2_mcspi_remove,
};
答案 0 :(得分:0)
首先,看看From where platform device gets it name。您可以在ACPI based device enumeration找到更多详细信息。