fsl/fman: add API to get the device behind a fman port
authorLaurentiu Tudor <laurentiu.tudor@nxp.com>
Wed, 23 Oct 2019 09:08:43 +0000 (12:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Oct 2019 22:21:58 +0000 (15:21 -0700)
commit681e38380c79e6ed00232385a613b2216dc23d22
tree51309b1e72352da65217ed615849b047093467df
parent1076aaeeeacfa998c71bfad42e5ac65b490fc456
fsl/fman: add API to get the device behind a fman port

Add an API that retrieves the 'struct device' that the specified FMan
port probed against. The new API will be used in a subsequent patch
that corrects the DMA devices used by the dpaa_eth driver.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_port.c
drivers/net/ethernet/freescale/fman/fman_port.h