Skip to content

Commit

Permalink
removeing release_mem_region because common/driver src code will be u…
Browse files Browse the repository at this point in the history
…pdated 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.
  • Loading branch information
ruck314 committed Feb 19, 2024
1 parent 34eb142 commit 595c193
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion petalinux/axistreamdma/files/axistreamdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 595c193

Please sign in to comment.