mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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:
parent
03de227439
commit
018a23891f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user