Re: device model documentation 2/3

Martin Dalecki
2002-06-04T16:50:46Z

Patrick Mochel wrote:
> Document 2: driver.txt

>
> This callback only verifies that there actually is supported hardware
> present. It may allocate a driver-specific structure, but it should
> not do any initialization of the hardware itself. The device-specific
> structure may be stored in the device's driver_data field.
>
> int (*init) (struct device * dev);
>
> init is called during the binding stage. It is called after probe has
> successfully returned and the device has been registered with its
> class. It is responsible for initializing the hardware.

"init is called during the *attachment*."
You see it even sounds more naturall.