goto gpu_probe_fail;
}
registerMemBase = res->start;
- // dkm: ²»ÄÜ+1
- registerMemSize = res->end - res->start;
+ registerMemSize = res->end - res->start + ((res->end & 1) ? 1 : 0);
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gpu_mem");
if (!res) {
goto gpu_probe_fail;
}
contiguousBase = res->start;
- // dkm: ²»ÄÜ+1
- contiguousSize = res->end - res->start;
+ contiguousSize = res->end - res->start + ((res->end & 1) ? 1 : 0);
res = platform_get_resource_byname(pdev, IORESOURCE_IO, "gpu_clk");
if (!res) {