Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f03f3995 authored by Kaixu Xia's avatar Kaixu Xia Committed by Mathieu Poirier
Browse files

coresight: fix comment in of_coresight.c



Outports is a member of the struct pdata and should be
a better choice.

Signed-off-by: default avatarKaixu Xia <xiakaixu@huawei.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f7c55298f17f0bf9d257ea7f2f15cf920248db5b)
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent 62ab4e9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -93,7 +93,7 @@ static int of_coresight_alloc_memory(struct device *dev,
	if (!pdata->outports)
	if (!pdata->outports)
		return -ENOMEM;
		return -ENOMEM;


	/* Children connected to this component via @outport */
	/* Children connected to this component via @outports */
	 pdata->child_names = devm_kzalloc(dev, pdata->nr_outport *
	 pdata->child_names = devm_kzalloc(dev, pdata->nr_outport *
					  sizeof(*pdata->child_names),
					  sizeof(*pdata->child_names),
					  GFP_KERNEL);
					  GFP_KERNEL);