-
Kevin Wolf authored
* Up to now, the cdi-device struct was created during the init_driver call of the driver and init_device only completed the initialisation. The new model is that init_device gets bus information (e.g. PCI address, device/vendor ID) and decides if it can handle the device. If so, it creates a cdi_device object and returns it. This way device creation is decoupled from driver initialisation and hot-plugging becomes possible. Signed-off-by:
Kevin Wolf <kevin@tyndur.org> Acked-by:
Max Reitz <max@tyndur.org> Acked-by:
Matthew Iselin <matthew@theiselins.net>
10f8c755