aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--remoteproc/ethosu_remoteproc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/remoteproc/ethosu_remoteproc.c b/remoteproc/ethosu_remoteproc.c
index ad476af..493a618 100644
--- a/remoteproc/ethosu_remoteproc.c
+++ b/remoteproc/ethosu_remoteproc.c
@@ -28,6 +28,7 @@
#include <linux/platform_device.h>
#include <linux/remoteproc.h>
#include <linux/reset.h>
+#include <linux/version.h>
#define ETHOSU_RPROC_DRIVER_VERSION "0.0.1"
@@ -92,9 +93,16 @@ static void ethosu_rproc_kick(struct rproc *rproc,
return;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0)
static void *ethosu_da_to_va(struct rproc *rproc,
u64 da,
int len)
+#else
+static void *ethosu_da_to_va(struct rproc *rproc,
+ u64 da,
+ size_t len,
+ bool *is_iomem)
+#endif
{
struct ethosu_rproc *ethosu = (struct ethosu_rproc *)rproc->priv;
int offset;