usb: gadget: udc: atmel: use of_find_matching_node_and_match
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 23 Jul 2020 18:48:57 +0000 (21:48 +0300)
committerFelipe Balbi <balbi@kernel.org>
Thu, 24 Sep 2020 08:56:16 +0000 (11:56 +0300)
commit3a48217854458a35c0d74db20c3a52ec7f990360
tree0bc73f7fae8507382298e74c6ae56b4213f43745
parente1c08cf23172ed6fb228d75efc9f4c80a6812116
usb: gadget: udc: atmel: use of_find_matching_node_and_match

Instead of trying to match every possible compatible use
of_find_matching_node_and_match() and pass the compatible array.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/atmel_usba_udc.c