coresight-core: Remove duplicate coresight_get_source

Remove duplicate coresight_get_source function to fix the compile
error.

Change-Id: I0057958e48536f273790a03e152002d4d31f2497
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
This commit is contained in:
Mao Jinlong 2022-08-11 04:03:58 -07:00
parent 03de227439
commit 018a23891f

View File

@ -670,20 +670,6 @@ int coresight_enable_path(struct list_head *path, u32 mode, void *sink_data)
goto out;
}
static struct coresight_device *coresight_get_source(struct list_head *path)
{
struct coresight_device *csdev;
if (!path)
return NULL;
csdev = list_first_entry(path, struct coresight_node, link)->csdev;
if (csdev->type != CORESIGHT_DEV_TYPE_SOURCE)
return NULL;
return csdev;
}
struct coresight_device *coresight_get_sink(struct list_head *path)
{
struct coresight_device *csdev;