• Patrick Mochel's avatar
    Device Model: do better cleanup on device removal · 3747eb84
    Patrick Mochel authored
    - make sure driverfs directory is removed after driver is detached and platform is notified (since they might have added files to it)
    - Add release callback to struct device that is to be set by whoever allocated the device (e.g. the bus). 
    This is the last thing called from put_device, so the owner of it can free the memory for the structure
    3747eb84
core.c 3.24 KB