瀏覽代碼

USB: phidgetmotorcontrol: Use usb_endpoint_* functions

Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Luiz Fernando N. Capitulino 18 年之前
父節點
當前提交
a742e5a7fc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/misc/phidgetmotorcontrol.c

+ 1 - 1
drivers/usb/misc/phidgetmotorcontrol.c

@@ -323,7 +323,7 @@ static int motorcontrol_probe(struct usb_interface *intf, const struct usb_devic
 		return -ENODEV;
 
 	endpoint = &interface->endpoint[0].desc;
-	if (!(endpoint->bEndpointAddress & 0x80))
+	if (!usb_endpoint_dir_in(endpoint))
 		return -ENODEV;
 
 	/*