dmaengine: bestcomm: Code cleanup for bcom_sram_init
authorKunwu Chan <chentao@kylinos.cn>
Wed, 24 Jan 2024 09:55:02 +0000 (17:55 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 30 Jan 2024 16:41:56 +0000 (22:11 +0530)
This part was commented from commit 2f9ea1bde0d1 ("[POWERPC]
bestcomm: core bestcomm support for Freescale MPC5200") in
about 16 years before.

If there are no plans to enable this part code in the future,
we can remove this dead code.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20240124095502.480506-1-chentao@kylinos.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/bestcomm/sram.c

index 0553956f745691b78d328b79d59fbbb8bdd0dd97..ad74d57cc3abe86eaa1d39d985ad0da47b2449ef 100644 (file)
@@ -90,13 +90,8 @@ int bcom_sram_init(struct device_node *sram_node, char *owner)
        bcom_sram->rh = rh_create(4);
 
        /* Attach the free zones */
-#if 0
-       /* Currently disabled ... for future use only */
-       reg_addr_p = of_get_property(sram_node, "available", &psize);
-#else
        regaddr_p = NULL;
        psize = 0;
-#endif
 
        if (!regaddr_p || !psize) {
                /* Attach the whole zone */