From 9bb27439d22ac539df08d8bcaf2de10f0da3be4c Mon Sep 17 00:00:00 2001 From: Madalin Bucur Date: Thu, 17 Aug 2017 10:51:50 +0800 Subject: powerpc: fsl/fman: remove fsl,fman from of_device_ids[] commit a782101e03788ba26d47a980d7ec2809f8884b13 [fman part] The fsl/fman drivers will use of_platform_populate() on all supported platforms. Call of_platform_populate() to probe the FMan sub-nodes. Signed-off-by: Igal Liberman Signed-off-by: Madalin Bucur Acked-by: Scott Wood Signed-off-by: David S. Miller Signed-off-by: Zhao Qiang diff --git a/drivers/net/ethernet/freescale/fman/fman.c b/drivers/net/ethernet/freescale/fman/fman.c index dafd9e1..4b83263 100644 --- a/drivers/net/ethernet/freescale/fman/fman.c +++ b/drivers/net/ethernet/freescale/fman/fman.c @@ -2868,6 +2868,13 @@ static struct fman *read_dts_node(struct platform_device *of_dev) fman->dev = &of_dev->dev; + err = of_platform_populate(fm_node, NULL, NULL, &of_dev->dev); + if (err) { + dev_err(&of_dev->dev, "%s: of_platform_populate() failed\n", + __func__); + goto fman_free; + } + return fman; fman_node_put: -- cgit v0.10.2