diff options
author | Suman Anna <s-anna@ti.com> | 2021-04-22 09:26:52 -0500 |
---|---|---|
committer | Suman Anna <s-anna@ti.com> | 2021-04-22 09:35:35 -0500 |
commit | c0039f1fec25e9ede27da78ff729b4a9e850c53d (patch) | |
tree | 0397436244bd730e39de2267e03095deb7540653 | |
parent | b0b57a4e810d27cbb23cb752ef437019f56a5506 (diff) | |
download | linuxutils-c0039f1fec25e9ede27da78ff729b4a9e850c53d.tar.gz |
cmemk: Fix 5.10 build errors for non Keystone2 platforms
The commit 8aba20e20bf7 ("cmemk: Fix build errors for 5.10+ kernels")
introduced a return type for cmem_dma_offset_configure(), but the
function is not returning a value for all code paths. This causes
a build failure for non Keystone 2 platforms. Fix this.
Fixes: 8aba20e20bf7 ("cmemk: Fix build errors for 5.10+ kernels")
Signed-off-by: Suman Anna <s-anna@ti.com>
-rw-r--r-- | src/cmem/module/cmemk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmem/module/cmemk.c b/src/cmem/module/cmemk.c index d320422..b2614df 100644 --- a/src/cmem/module/cmemk.c +++ b/src/cmem/module/cmemk.c @@ -2755,6 +2755,8 @@ static int __init cmem_dma_offset_configure(struct device *dev) KEYSTONE_LOW_PHYS_START, KEYSTONE_HIGH_PHYS_SIZE); #endif +#else + return 0; #endif } |