mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "soc: qcom: spss_utils: Modify memory unmapping scheme for cmac_mem"
This commit is contained in:
commit
114be2591f
1 changed files with 6 additions and 2 deletions
|
|
@ -825,9 +825,8 @@ static int spss_set_fw_cmac(u32 *cmac, size_t cmac_size)
|
|||
writel_relaxed(cmac[i], reg + i*sizeof(u32));
|
||||
pr_debug("cmac[%d] [0x%x]\n", i, cmac[i]);
|
||||
}
|
||||
reg += cmac_size;
|
||||
iounmap(cmac_mem);
|
||||
|
||||
reg += cmac_size;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1061,6 +1060,11 @@ static int spss_remove(struct platform_device *pdev)
|
|||
kfree(spss_utils_dev);
|
||||
spss_utils_dev = 0;
|
||||
|
||||
if (cmac_mem != NULL) {
|
||||
iounmap(cmac_mem);
|
||||
cmac_mem = NULL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue