]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/host/u132-hcd.c
dma: remove external references to dma_supported
[karo-tx-linux.git] / drivers / usb / host / u132-hcd.c
index a67bd509033097cfc156f84605f43f3617b951d8..692ccc69345e4a9998246a53b6af817a56a5d435 100644 (file)
@@ -2244,9 +2244,8 @@ static int u132_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
 {
        struct u132 *u132 = hcd_to_u132(hcd);
        if (irqs_disabled()) {
-               if (__GFP_WAIT & mem_flags) {
-                       printk(KERN_ERR "invalid context for function that migh"
-                               "t sleep\n");
+               if (gfpflags_allow_blocking(mem_flags)) {
+                       printk(KERN_ERR "invalid context for function that might sleep\n");
                        return -EINVAL;
                }
        }