提交 ff710710 编写于 作者: G gregkh@suse.de 提交者: Greg Kroah-Hartman

[PATCH] USB: fix build warning in usb core as pointed out by Andrew.

Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>

Index: gregkh-2.6/drivers/usb/core/usb.c
===================================================================
上级 126eddfb
......@@ -492,7 +492,7 @@ static int __find_interface(struct device * dev, void * data)
*/
struct usb_interface *usb_find_interface(struct usb_driver *drv, int minor)
{
struct usb_interface *intf = (struct usb_interface *)minor;
struct usb_interface *intf = (struct usb_interface *)(long)minor;
int ret;
ret = driver_for_each_device(&drv->driver, NULL, &intf, __find_interface);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册