mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
USB: sisusbvga: no unnecessary GFP_ATOMIC
If a driver can wait on an event, it can also use GFP_KERNEL. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
3756c7c091
commit
444dc54c28
1 changed files with 2 additions and 2 deletions
|
|
@ -250,7 +250,7 @@ sisusb_bulkout_msg(struct sisusb_usb_data *sisusb, int index, unsigned int pipe,
|
|||
sisusb->urbstatus[index] |= SU_URB_BUSY;
|
||||
|
||||
/* 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 ((retval == 0) && timeout) {
|
||||
|
|
@ -306,7 +306,7 @@ sisusb_bulkin_msg(struct sisusb_usb_data *sisusb, unsigned int pipe, void *data,
|
|||
urb->actual_length = 0;
|
||||
|
||||
sisusb->completein = 0;
|
||||
retval = usb_submit_urb(urb, GFP_ATOMIC);
|
||||
retval = usb_submit_urb(urb, GFP_KERNEL);
|
||||
if (retval == 0) {
|
||||
wait_event_timeout(sisusb->wait_q, sisusb->completein, timeout);
|
||||
if (!sisusb->completein) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue