event/dpaa2: return correct number of event ports
authorNipun Gupta <nipun.gupta@nxp.com>
Wed, 3 Jan 2018 16:44:19 +0000 (22:14 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 19 Jan 2018 15:09:56 +0000 (16:09 +0100)
commit342f299568eae79e44a2313c3f1fd820f4498a0c
treeaf536226d9835368878cfc69e44984a4bffbc0a2
parenta9980aa483aea9dc5b5f353916efc9f6889ef0c0
event/dpaa2: return correct number of event ports

In the info get API we were returning number of event
ports as MAX number of LCORE's. After this change actual
number of event ports (i.e. number of DPIO's) is provided
in the info get API.

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/event/dpaa2/dpaa2_eventdev.c