memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe()
[linux-block.git] / drivers / memory / pl353-smc.c
index f84b98278745c827cde481573b3493d846c93f82..d39ee7d06665bdb8485f505ff8fe19f922e52484 100644 (file)
@@ -122,6 +122,7 @@ static int pl353_smc_probe(struct amba_device *adev, const struct amba_id *id)
        }
 
        of_platform_device_create(child, NULL, &adev->dev);
+       of_node_put(child);
 
        return 0;