Device Model: do better cleanup on device removal
- 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
Showing
Please register or sign in to comment