Who calls “probe” function in driver code?
问题 I am trying to understand this driver code of mcspi for omap2 panda board. I don't understand who calls the probe function and what is the call chain in this driver code? How does the driver is informed when the device is connected? 回答1: The probe function from spi-omap2-mcspi.c is saved in the static struct platform_driver omap2_mcspi_driver , which is registered with module_platform_driver(omap2_mcspi_driver); (at the end of file). The module_platform_driver macro, defined in platform