]> err.no Git - linux-2.6/commit
[PATCH] drivers/usb/input/yealink.c: Cleanup device matching code
authorHenk <Henk.Vergonet@gmail.com>
Fri, 30 Dec 2005 18:41:11 +0000 (19:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 1 Feb 2006 01:23:37 +0000 (17:23 -0800)
commit8e2ce4f92a0f34e8c3316ec58fd6eb6aa282448e
treecbb996b43ecc036d69d32bbdcf61e607c9dc676f
parent09c280a24650ff74e713742e94120fdf7765cda8
[PATCH] drivers/usb/input/yealink.c: Cleanup device matching code

This should fix things mentioned below:

"I was curious why my firewall was loading a 'phone driver'.
It turns out that the probing in the yealink driver is
a little too assuming..

static struct usb_device_id usb_table [] = {
    { USB_INTERFACE_INFO(USB_CLASS_HID, 0, 0) },
    { }
};

So it picked up my UPS, and loaded the driver.
Whilst no harm came, because it later checks the vendor/product IDs,
this driver should probably be rewritten to only probe
for the device IDs it actually knows about.

Dave"

Signed-off-by: Henk Vergonet <henk.vergonet@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/input/yealink.c