]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc: fsl/fman: remove fsl,fman from of_device_ids[]
authorMadalin Bucur <madalin.bucur@nxp.com>
Mon, 19 Dec 2016 20:42:44 +0000 (22:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Dec 2016 18:55:34 +0000 (13:55 -0500)
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 <igal.liberman@freescale.com>
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Acked-by: Scott Wood <oss@buserror.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/powerpc/platforms/85xx/corenet_generic.c
drivers/net/ethernet/freescale/fman/fman.c

index 3803b0addf657edafae38ee217136db69a5db900..6c0ba75fb2561f730908050c18afc35ebd45eb5f 100644 (file)
@@ -117,9 +117,6 @@ static const struct of_device_id of_device_ids[] = {
        {
                .compatible     = "fsl,qe",
        },
-       {
-               .compatible    = "fsl,fman",
-       },
        /* The following two are for the Freescale hypervisor */
        {
                .name           = "hypervisor",
index dafd9e1baba2cb420ea70826408d0474488ca246..4b832633a1c041c3ba76830be7974933ae5baa24 100644 (file)
@@ -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: