dprc_setup has called fsl_mc_uapi_create_device_file to create a file,
so this place does not need to be created repeatedly

Signed-off-by: Xiaolei Wang <[email protected]>
---
 drivers/bus/fsl-mc/dprc-driver.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/drivers/bus/fsl-mc/dprc-driver.c b/drivers/bus/fsl-mc/dprc-driver.c
index 29dc3536b89f..766640f8bb32 100644
--- a/drivers/bus/fsl-mc/dprc-driver.c
+++ b/drivers/bus/fsl-mc/dprc-driver.c
@@ -765,13 +765,6 @@ static int dprc_probe(struct fsl_mc_device *mc_dev)
        if (error < 0)
                return error;
 
-       error = device_create_file(&mc_dev->dev, &dev_attr_rescan);
-       if (error < 0) {
-               dev_err(&mc_dev->dev, "device_create_file() failed: %d\n",
-                       error);
-               goto error_cleanup_open;
-       }
-
        /*
         * Discover MC objects in DPRC object:
         */
@@ -882,12 +875,6 @@ static int dprc_remove(struct fsl_mc_device *mc_dev)
 
        device_for_each_child(&mc_dev->dev, NULL, __fsl_mc_device_remove);
 
-       error = fsl_mc_uapi_create_device_file(mc_bus);
-        if (error < 0) {
-                error = -EPROBE_DEFER;
-               goto error_cleanup_msi_domain;
-        }
-
        dprc_cleanup(mc_dev);
 
        fsl_mc_uapi_remove_device_file(mc_bus);
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9667): 
https://lists.yoctoproject.org/g/linux-yocto/message/9667
Mute This Topic: https://lists.yoctoproject.org/mt/81822944/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to