How does probe()
call gets called? Who calls it? As per my understanding, __init()
registers driver
and then somehow probe()
Long story short: the probe() function of the driver is called as a result of calling the register_driver
for that specific bus. More precisely, it's called by the probe()
of that bus_type
structure. In your case: i2c_bus_type
.
Here's the call chain in your I2C case: