In preparation to handle device reference counting inside of the sink drivers, add a return code to the sink::disable() operation so that proper action can be taken if a sink has not been disabled.
Showing the changes to include/linux (1 of 6 files). Show all
Unified · Split
| @@ -192,7 +192,7 @@ struct coresight_device { · 191 unmodified lines | |||
| 192 | */ | 192 | */ |
| 193 | struct coresight_ops_sink { | 193 | struct coresight_ops_sink { |
| 194 | int (*enable)(struct coresight_device *csdev, u32 mode, void *data); | 194 | int (*enable)(struct coresight_device *csdev, u32 mode, void *data); |
| 195 | void (*disable)(struct coresight_device *csdev); | 195 | int (*disable)(struct coresight_device *csdev); |
| 196 | void *(*alloc_buffer)(struct coresight_device *csdev, int cpu, | 196 | void *(*alloc_buffer)(struct coresight_device *csdev, int cpu, |
| 197 | void **pages, int nr_pages, bool overwrite); | 197 | void **pages, int nr_pages, bool overwrite); |
| 198 | void (*free_buffer)(void *config); | 198 | void (*free_buffer)(void *config); |