]> git.baikalelectronics.ru Git - kernel.git/commit
usb: bdc: Use devm_clk_get_optional()
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 22 Jul 2020 17:07:46 +0000 (13:07 -0400)
committerFelipe Balbi <balbi@kernel.org>
Fri, 24 Jul 2020 13:45:15 +0000 (16:45 +0300)
commit215605a96784e704c52c5ab63962ab3d2928af51
tree9abbc34c7997f06c101ed0db8bed0897f34613a7
parent5b3e923149f4b9418d6c9cc35cdc87f421aea743
usb: bdc: Use devm_clk_get_optional()

The BDC clock is optional and we may get an -EPROBE_DEFER error code
which would not be propagated correctly, fix this by using
devm_clk_get_optional().

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/bdc/bdc_core.c