staging: fsl-mc: remove references to dev_root
authorItai Katz <itai.katz@freescale.com>
Sun, 4 Oct 2015 07:09:54 +0000 (10:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:55:45 +0000 (09:55 +0100)
The dev_root field in the bus type struct has been replaced by a
new mechanism to identify the root dprc.  Remove all references
to dev_root.

Signed-off-by: Itai Katz <itai.katz@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-bus.c

index 8a2b99c9f8228c97abeaaef0f23e8ec06a7cb024..fd13053cbd9b38d526b93398fc378c82e8a56021 100644 (file)
@@ -458,9 +458,6 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc,
 
                        mc_io2 = mc_io;
 
-                       if (!fsl_mc_bus_exists())
-                               fsl_mc_bus_type.dev_root = &mc_dev->dev;
-
                        atomic_inc(&root_dprc_count);
                }
 
@@ -545,7 +542,6 @@ void fsl_mc_device_remove(struct fsl_mc_device *mc_dev)
                }
 
                if (fsl_mc_is_root_dprc(&mc_dev->dev)) {
-                       fsl_mc_bus_type.dev_root = NULL;
                        if (atomic_read(&root_dprc_count) > 0)
                                atomic_dec(&root_dprc_count);
                        else
This page took 0.024979 seconds and 5 git commands to generate.