diff options
| author | Patrick Mochel <mochel@geena.pdx.osdl.net> | 2002-05-23 21:20:21 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@geena.pdx.osdl.net> | 2002-05-23 21:20:21 -0700 |
| commit | 3747eb8489228468dad737eb593289988ac36b62 (patch) | |
| tree | 546b1aa5b0ad5a782d250711007c1af4842ac074 /include/linux/device.h | |
| parent | e6d19c6ab5f0f54d15277be9933183050d01ce2c (diff) | |
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
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 96d9cb108139..ccfd221d5dcd 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -92,6 +92,8 @@ struct device { being off. */ unsigned char *saved_state; /* saved device state */ + + void (*release)(struct device * dev); }; static inline struct device * |
