mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
target: break up free_device callback
With this patch free_device is now used to free what is allocated in the alloc_device callback and destroy_device tears down the resources that are setup in the configure_device callback. This patch will be needed in the next patch where tcmu needs to be able to look up the device in the destroy callback. Signed-off-by: Mike Christie <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
2d76443e02
commit
926347061e
7 changed files with 36 additions and 8 deletions
|
|
@ -30,6 +30,7 @@ struct target_backend_ops {
|
|||
|
||||
struct se_device *(*alloc_device)(struct se_hba *, const char *);
|
||||
int (*configure_device)(struct se_device *);
|
||||
void (*destroy_device)(struct se_device *);
|
||||
void (*free_device)(struct se_device *device);
|
||||
|
||||
ssize_t (*set_configfs_dev_params)(struct se_device *,
|
||||
|
|
|
|||
Loading…
Reference in a new issue