habanalabs: don't init vm module if no MMU
authorOded Gabbay <ogabbay@kernel.org>
Sun, 4 Oct 2020 20:00:39 +0000 (23:00 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:28 +0000 (10:47 +0200)
commitf3a965c25075285f4b7af48d8613610a403231b6
treef0df1aa207e93847b0928bec1ccb948d90479cf2
parent8f503146746b07ede1d0ceef728332e6bb50329d
habanalabs: don't init vm module if no MMU

In case we are running without MMU enabled (debug mode), no need to
initialize the VM module in the driver.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/memory.c