diff options
author | Pritesh Raithatha <praithatha@nvidia.com> | 2018-07-03 06:38:05 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-05 10:24:24 -0400 |
commit | fbb7b1cd8d663d713f4aa24a22f571e070834b39 (patch) | |
tree | 0a14492aaa6e4c4d5b74656b5cf6dbd5daba6584 | |
parent | 48713ff34245d3f4f5f96f7a660482eda8264e53 (diff) |
denver: hardwood: use __flush_dcache_area function directly
FLUSH_DCACHE_AREA define was added to select function based
on ARM64 and ARM32. ARM32 is not getting used so using
__flush_dcache_area directly.
Bug 200427682
Change-Id: I85f3102786762dc4f348d24bbe01500949f3854e
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1769161
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | drivers/platform/tegra/denver-hardwood.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/tegra/denver-hardwood.c b/drivers/platform/tegra/denver-hardwood.c index efe08d209..35b2e8640 100644 --- a/drivers/platform/tegra/denver-hardwood.c +++ b/drivers/platform/tegra/denver-hardwood.c | |||
@@ -494,7 +494,7 @@ static ssize_t hardwood_read(struct file *file, char __user *p, size_t s, | |||
494 | return -EIO; | 494 | return -EIO; |
495 | 495 | ||
496 | /* Invalidate the cache */ | 496 | /* Invalidate the cache */ |
497 | FLUSH_DCACHE_AREA((void *)dev->bufs[buf_id].va, buffer_size); | 497 | __flush_dcache_area((void *)dev->bufs[buf_id].va, buffer_size); |
498 | 498 | ||
499 | if (copy_to_user((void __user *)p, &buf_id, sizeof(u32))) | 499 | if (copy_to_user((void __user *)p, &buf_id, sizeof(u32))) |
500 | return -ENOMEM; | 500 | return -ENOMEM; |