Skip to content

Commit

Permalink
fix: allow building usb_f_uvc as module
Browse files Browse the repository at this point in the history
Signed-off-by: ZHANG Yuntian <yt@radxa.com>
  • Loading branch information
RadxaYuntian committed Jun 25, 2024
1 parent 96101a9 commit 8bdce8e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: ZHANG Yuntian <yt@radxa.com>
Date: Tue, 25 Jun 2024 16:31:45 +0800
Subject: [PATCH] fix: import namespace DMA_BUF before using it

---
drivers/usb/gadget/function/uvc_queue.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/function/uvc_queue.c b/drivers/usb/gadget/function/uvc_queue.c
index 3565bbe8976e1..237e2335cee6c 100644
--- a/drivers/usb/gadget/function/uvc_queue.c
+++ b/drivers/usb/gadget/function/uvc_queue.c
@@ -81,6 +81,7 @@ static int uvc_queue_setup(struct vb2_queue *vq,
}

#if defined(CONFIG_ARCH_ROCKCHIP) && defined(CONFIG_NO_GKI)
+MODULE_IMPORT_NS(DMA_BUF);
/*
* uvc_dma_buf_phys_to_virt - Get the physical address of the dma_buf and
* translate it to virtual address.
--
2.45.2

0 comments on commit 8bdce8e

Please sign in to comment.