commit | fcafadf71a252009f1d0663b8fcf4bd57f4f2c66 | [log] [tgz] |
---|---|---|
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | Wed Apr 17 16:28:20 2019 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Apr 19 14:24:26 2019 +0200 |
tree | 16aa2e7deeafa43e6784d19363138f832247e598 | |
parent | e894cdc2cb468c49242f8ab39236de475604f0c1 [diff] |
usb: chipidea: msm: get optional clock by devm_clk_get_optional() When the driver tries to get optional clock, it ignores all errors except -EPROBE_DEFER, but if only ignores -ENOENT, it will cover some real errors, such as -ENOMEM, so use devm_clk_get_optional() to get optional clock. Cc: Peter Chen <Peter.Chen@nxp.com> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Acked-by: Peter Chen <Peter.Chen@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>