soc: fsl: dpio: store a backpointer to the device backing the dpaa2_io

Add a new field in the dpaa2_io structure to hold a backpointer to the
actual DPIO device.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
This commit is contained in:
Ioana Ciornei
2018-12-10 16:50:18 +00:00
committed by Li Yang
parent 9182ee2840
commit cf9ff75d15
3 changed files with 9 additions and 3 deletions

View File

@@ -57,7 +57,8 @@ struct dpaa2_io_desc {
u32 qman_version;
};
struct dpaa2_io *dpaa2_io_create(const struct dpaa2_io_desc *desc);
struct dpaa2_io *dpaa2_io_create(const struct dpaa2_io_desc *desc,
struct device *dev);
void dpaa2_io_down(struct dpaa2_io *d);