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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:32 +0000 (09:42 +0200)
commit9246d9310cd6d8e94219ac9f6c5ace8bb52bc76c
tree348bd3363c46f17ccad27f5fa54dfd19b0caefed
parentc4cb61c5f976183c07d16b0071f0c60bc212ef1f
Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe()

[ Upstream commit e8b5aed31355072faac8092ead4938ddec3111fd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/hci_nokia.c