Commit f835f3ea authored by Oliver Neukum's avatar Oliver Neukum Committed by Mauro Carvalho Chehab

media: flexcop: unneeded ATOMIC

No need for GFP_ATOMIC during probe()

Link: https://lore.kernel.org/linux-media/20220517131109.28371-1-oneukum@suse.comSigned-off-by: default avatarOliver Neukum <oneukum@suse.com>
Reviewed-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 30f7bc00
...@@ -448,7 +448,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) ...@@ -448,7 +448,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)
/* creating iso urbs */ /* creating iso urbs */
for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) { for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) {
fc_usb->iso_urb[i] = usb_alloc_urb(B2C2_USB_FRAMES_PER_ISO, fc_usb->iso_urb[i] = usb_alloc_urb(B2C2_USB_FRAMES_PER_ISO,
GFP_ATOMIC); GFP_KERNEL);
if (fc_usb->iso_urb[i] == NULL) { if (fc_usb->iso_urb[i] == NULL) {
ret = -ENOMEM; ret = -ENOMEM;
goto urb_error; goto urb_error;
...@@ -481,7 +481,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) ...@@ -481,7 +481,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)
frame_offset += frame_size; frame_offset += frame_size;
} }
if ((ret = usb_submit_urb(fc_usb->iso_urb[i],GFP_ATOMIC))) { if ((ret = usb_submit_urb(fc_usb->iso_urb[i],GFP_KERNEL))) {
err("submitting urb %d failed with %d.", i, ret); err("submitting urb %d failed with %d.", i, ret);
goto urb_error; goto urb_error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment