From 595c193eb8a0d69710391f96875ade2f5b1829bc Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Sun, 18 Feb 2024 19:53:07 -0800 Subject: [PATCH] removeing release_mem_region because common/driver src code will be updated to devm_request_mem_region When you use devm_request_mem_region to request a memory region, the memory is managed automatically by the device management (devm) API within the Linux kernel. This means that the memory region will be automatically released when the device is detached or the driver is unloaded. Therefore, you do not need to explicitly call a function to release the memory region when using devm_request_mem_region. --- petalinux/axistreamdma/files/axistreamdma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/petalinux/axistreamdma/files/axistreamdma.c b/petalinux/axistreamdma/files/axistreamdma.c index 6ecc006..551579d 100755 --- a/petalinux/axistreamdma/files/axistreamdma.c +++ b/petalinux/axistreamdma/files/axistreamdma.c @@ -199,7 +199,6 @@ int Rce_Probe(struct platform_device *pdev) { else { writel(0x1,((uint8_t *)dev->reg)+0x8); if ( readl(((uint8_t *)dev->reg)+0x8) != 0x1 ) { - release_mem_region(dev->baseAddr, dev->baseSize); pr_info("%s: Probe: Empty register space. Exiting.\n", dev->device); return(-1); }