summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea
diff options
context:
space:
mode:
authorChunfeng Yun2019-04-17 10:28:18 +0200
committerGreg Kroah-Hartman2019-04-19 14:24:25 +0200
commitbbe2028f43c88e58a879eaa8627a871704b01252 (patch)
tree52d10f618d5daa6c53ffd9d0b1b6f4dd21bfa317 /drivers/usb/chipidea
parentusb: host: xhci-plat: get optional clock by devm_clk_get_optional() (diff)
downloadkernel-qcow2-linux-bbe2028f43c88e58a879eaa8627a871704b01252.tar.gz
kernel-qcow2-linux-bbe2028f43c88e58a879eaa8627a871704b01252.tar.xz
kernel-qcow2-linux-bbe2028f43c88e58a879eaa8627a871704b01252.zip
usb: misc: usb3503: 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. And remove unnecessary stack variable clk. Cc: Dongjin Kim <tobetter@gmail.com> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea')
0 files changed, 0 insertions, 0 deletions