Skip to content

Commit 56c7b74

Browse files
Peter UjfalusiVinod Koul
authored andcommitted
dmaengine: edma: Do not allocate memory for edma_rsv_info in case of DT boot
The channel/slot reservation is not supported when booted with DT so there is not need to allocate memory. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 02f77ef commit 56c7b74

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/dma/edma.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,12 +1926,6 @@ static int edma_of_parse_dt(struct device *dev, struct edma_soc_info *pdata)
19261926
int ret = 0;
19271927
struct property *prop;
19281928
size_t sz;
1929-
struct edma_rsv_info *rsv_info;
1930-
1931-
rsv_info = devm_kzalloc(dev, sizeof(struct edma_rsv_info), GFP_KERNEL);
1932-
if (!rsv_info)
1933-
return -ENOMEM;
1934-
pdata->rsv = rsv_info;
19351929

19361930
prop = of_find_property(dev->of_node, "ti,edma-xbar-event-map", &sz);
19371931
if (prop)

0 commit comments

Comments
 (0)