summaryrefslogtreecommitdiff
path: root/drivers/media/usb/gspca/vicam.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-05-05 11:22:08 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-05 18:42:43 +0300
commit5334b3426ac9a57f4103275cfbd7e37b18851308 (patch)
treef8906674718be989f33836871fd4ea16c76c46d9 /drivers/media/usb/gspca/vicam.c
parent6159e12e11770fb25e748af90f6c5206c1df09ee (diff)
downloadlinux-5334b3426ac9a57f4103275cfbd7e37b18851308.tar.xz
media: gspca: Stop using GFP_DMA for buffers for USB bulk transfers
The recent "x86 ZONE_DMA love" discussion at LSF/MM pointed out that some gspca sub-drivvers are using GFP_DMA to allocate buffers which are used for USB bulk transfers, there is absolutely no need for this, drop it. Cc: "Luis R. Rodriguez" <mcgrof@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/gspca/vicam.c')
-rw-r--r--drivers/media/usb/gspca/vicam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/vicam.c b/drivers/media/usb/gspca/vicam.c
index 554b90ef2200..8562bda0ef88 100644
--- a/drivers/media/usb/gspca/vicam.c
+++ b/drivers/media/usb/gspca/vicam.c
@@ -182,7 +182,7 @@ static void vicam_dostream(struct work_struct *work)
frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage +
HEADER_SIZE;
- buffer = kmalloc(frame_sz, GFP_KERNEL | GFP_DMA);
+ buffer = kmalloc(frame_sz, GFP_KERNEL);
if (!buffer) {
pr_err("Couldn't allocate USB buffer\n");
goto exit;