aboutsummaryrefslogtreecommitdiff
path: root/drivers/hwtracing/coresight/coresight-priv.h
diff options
context:
space:
mode:
authorGravatar Suzuki K Poulose <suzuki.poulose@arm.com> 2020-05-18 12:02:20 -0600
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2020-05-19 16:31:15 +0200
commitd60250a459bb94b649986da369cacaed032ed653 (patch)
tree0479e4b1bdb01c29040a260e17c3fb410c22017a /drivers/hwtracing/coresight/coresight-priv.h
parentMerge tag 'misc-habanalabs-next-2020-05-19' of git://people.freedesktop.org/~... (diff)
downloadlinux-d60250a459bb94b649986da369cacaed032ed653.tar.gz
linux-d60250a459bb94b649986da369cacaed032ed653.tar.bz2
linux-d60250a459bb94b649986da369cacaed032ed653.zip
coresight: Pass coresight_device for coresight_release_platform_data
As we prepare to expose the links between the devices in sysfs, pass the coresight_device instance to the coresight_release_platform_data in order to free up the connections when the device is removed. No functional changes as such in this patch. Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Mike Leach <mike.leach@linaro.org> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Link: https://lore.kernel.org/r/20200518180242.7916-2-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-priv.h')
-rw-r--r--drivers/hwtracing/coresight/coresight-priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-priv.h b/drivers/hwtracing/coresight/coresight-priv.h
index 890f9a5c97c6..1cad642f27aa 100644
--- a/drivers/hwtracing/coresight/coresight-priv.h
+++ b/drivers/hwtracing/coresight/coresight-priv.h
@@ -211,7 +211,8 @@ static inline void *coresight_get_uci_data(const struct amba_id *id)
return 0;
}
-void coresight_release_platform_data(struct coresight_platform_data *pdata);
+void coresight_release_platform_data(struct coresight_device *csdev,
+ struct coresight_platform_data *pdata);
struct coresight_device *
coresight_find_csdev_by_fwnode(struct fwnode_handle *r_fwnode);
void coresight_set_assoc_ectdev_mutex(struct coresight_device *csdev,