usb: gadget: udc: renesas_usb3: Use of_device_get_match_data() helper
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 4 Oct 2017 12:23:31 +0000 (14:23 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 19 Oct 2017 07:38:08 +0000 (10:38 +0300)
commitca02a5af650cf3addb004196c2ab713b020445ef
treecd36b38c5bd888e39b48944c323b523f3a6a4361
parentb61e47b44882f6e578ef7c14197ea90a2703b5a0
usb: gadget: udc: renesas_usb3: Use of_device_get_match_data() helper

Use the of_device_get_match_data() helper instead of open coding,
postponing the matching until when it's really needed.
Note that the renesas_usb3 driver is used with DT only, so there's
always a valid match.

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/renesas_usb3.c