Commit 444dc54c authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

USB: sisusbvga: no unnecessary GFP_ATOMIC

If a driver can wait on an event, it can also use GFP_KERNEL.
Signed-off-by: default avatarOliver Neukum <neukum@b1-systems.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3756c7c0
...@@ -250,7 +250,7 @@ sisusb_bulkout_msg(struct sisusb_usb_data *sisusb, int index, unsigned int pipe, ...@@ -250,7 +250,7 @@ sisusb_bulkout_msg(struct sisusb_usb_data *sisusb, int index, unsigned int pipe,
sisusb->urbstatus[index] |= SU_URB_BUSY; sisusb->urbstatus[index] |= SU_URB_BUSY;
/* Submit URB */ /* Submit URB */
retval = usb_submit_urb(urb, GFP_ATOMIC); retval = usb_submit_urb(urb, GFP_KERNEL);
/* If OK, and if timeout > 0, wait for completion */ /* If OK, and if timeout > 0, wait for completion */
if ((retval == 0) && timeout) { if ((retval == 0) && timeout) {
...@@ -306,7 +306,7 @@ sisusb_bulkin_msg(struct sisusb_usb_data *sisusb, unsigned int pipe, void *data, ...@@ -306,7 +306,7 @@ sisusb_bulkin_msg(struct sisusb_usb_data *sisusb, unsigned int pipe, void *data,
urb->actual_length = 0; urb->actual_length = 0;
sisusb->completein = 0; sisusb->completein = 0;
retval = usb_submit_urb(urb, GFP_ATOMIC); retval = usb_submit_urb(urb, GFP_KERNEL);
if (retval == 0) { if (retval == 0) {
wait_event_timeout(sisusb->wait_q, sisusb->completein, timeout); wait_event_timeout(sisusb->wait_q, sisusb->completein, timeout);
if (!sisusb->completein) { if (!sisusb->completein) {
......
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