aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-ti.c
diff options
context:
space:
mode:
authorChunfeng Yun <[email protected]>2019-04-17 16:28:21 +0800
committerGreg Kroah-Hartman <[email protected]>2019-04-19 14:24:26 +0200
commit1567d661b90ff670b61bf0b8461afd2dac4a4b7c (patch)
tree6b7738b354606ae2d683ac51186a83c1203c17b0 /drivers/usb/cdns3/cdns3-ti.c
parentfcafadf71a252009f1d0663b8fcf4bd57f4f2c66 (diff)
usb: mtu3: get optional clock by devm_clk_get_optional()
Use devm_clk_get_optional() to get optional clock instead of optional_clk_get() which uses devm_clk_get() to get clock and checks for -EPROBE_DEFER but not -ENOENT as devm_clk_get_optional() does, in fact, only ignoring -ENOENT will cover more errors, so the replacement doesn't change original purpose. Signed-off-by: Chunfeng Yun <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions