0

What's 'pm' and 'of_match_table' in the following spi driver code

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,
 };
Sagar Jain
  • 7,475
  • 12
  • 47
  • 83

1 Answers1

0

First, take a look on From where platform device gets it name. You can find more details on ACPI based device enumeration.

Community
  • 1
  • 1
Mihai8
  • 3,113
  • 1
  • 21
  • 31