Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe()
authorYuanjun Gong <ruc_gongyuanjun@163.com>
Wed, 26 Jul 2023 13:30:00 +0000 (21:30 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Aug 2023 18:50:41 +0000 (11:50 -0700)
commite8b5aed31355072faac8092ead4938ddec3111fd
tree9688029013e73ad2aeaea5d1eee09b0916689fa0
parente15f44fb9cb26168a1171a3e8f7f44d11a2727b8
Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe()

in nokia_bluetooth_serdev_probe(), check the return value of
clk_prepare_enable() and return the error code if
clk_prepare_enable() returns an unexpected value.

Fixes: 7bb318680e86 ("Bluetooth: add nokia driver")
Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_nokia.c