Loading drivers/hwtracing/coresight/coresight.c +10 −8 Original line number Diff line number Diff line Loading @@ -697,26 +697,28 @@ int coresight_enable(struct coresight_device *csdev) } EXPORT_SYMBOL_GPL(coresight_enable); void coresight_disable(struct coresight_device *csdev) static void __coresight_disable(struct coresight_device *csdev) { int ret; mutex_lock(&coresight_mutex); ret = coresight_validate_source(csdev, __func__); if (ret) goto out; return; if (!csdev->enable || !coresight_disable_source(csdev)) goto out; return; if (csdev->node == NULL) goto out; return; coresight_disable_path(csdev->node->path); coresight_release_path(csdev, csdev->node->path); } out: void coresight_disable(struct coresight_device *csdev) { mutex_lock(&coresight_mutex); __coresight_disable(csdev); mutex_unlock(&coresight_mutex); } EXPORT_SYMBOL_GPL(coresight_disable); Loading Loading @@ -1010,7 +1012,7 @@ static ssize_t reset_source_sink_store(struct bus_type *bus, csdev = coresight_get_source(cspath->path); if (!csdev) continue; coresight_disable(csdev); __coresight_disable(csdev); } mutex_unlock(&coresight_mutex); Loading Loading
drivers/hwtracing/coresight/coresight.c +10 −8 Original line number Diff line number Diff line Loading @@ -697,26 +697,28 @@ int coresight_enable(struct coresight_device *csdev) } EXPORT_SYMBOL_GPL(coresight_enable); void coresight_disable(struct coresight_device *csdev) static void __coresight_disable(struct coresight_device *csdev) { int ret; mutex_lock(&coresight_mutex); ret = coresight_validate_source(csdev, __func__); if (ret) goto out; return; if (!csdev->enable || !coresight_disable_source(csdev)) goto out; return; if (csdev->node == NULL) goto out; return; coresight_disable_path(csdev->node->path); coresight_release_path(csdev, csdev->node->path); } out: void coresight_disable(struct coresight_device *csdev) { mutex_lock(&coresight_mutex); __coresight_disable(csdev); mutex_unlock(&coresight_mutex); } EXPORT_SYMBOL_GPL(coresight_disable); Loading Loading @@ -1010,7 +1012,7 @@ static ssize_t reset_source_sink_store(struct bus_type *bus, csdev = coresight_get_source(cspath->path); if (!csdev) continue; coresight_disable(csdev); __coresight_disable(csdev); } mutex_unlock(&coresight_mutex); Loading