Greg KH
2005-06-21T02:46:59Z

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

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

Index: gregkh-2.6/drivers/usb/core/usb.c
===================================================================

---
commit ff710710eae73990dd484ea8e37dba636452502b
tree c764773894a10b5650f81b32e86751b97e54706e
parent 126eddfbf8cae8a20c22708192bffcbd77c8a889
author gregkh@suse.de <gregkh@suse.de> Thu, 24 Mar 2005 00:44:28 -0800
committer Greg Kroah-Hartman <gregkh@suse.de> Mon, 20 Jun 2005 15:15:26 -0700

drivers/usb/core/usb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -492,7 +492,7 @@ static int __find_interface(struct devic
*/
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);