USB: Also match device drivers using the ->match vfunc
authorBastien Nocera <hadess@hadess.net>
Tue, 18 Aug 2020 11:04:43 +0000 (13:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 11:08:45 +0000 (13:08 +0200)
commitadb6e6ac20eedcf1dce19dc75b224e63c0828ea1
tree8c753fba2583f0eb5721f8cdb08e9232ace57535
parentd54343a87732726b04ac5af873916b5ed4f52932
USB: Also match device drivers using the ->match vfunc

We only ever used the ID table matching before, but we should also support
open-coded match functions.

Fixes: 88b7381a939de ("USB: Select better matching USB drivers when available")
Signed-off-by: Bastien Nocera <hadess@hadess.net>
Cc: stable <stable@vger.kernel.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20200818110445.509668-1-hadess@hadess.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/generic.c