]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_qca: Replace devm_gpiod_get() with devm_gpiod_get_optional()
authorRocky Liao <rjliao@codeaurora.org>
Wed, 4 Mar 2020 13:16:45 +0000 (21:16 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 4 Mar 2020 16:02:18 +0000 (17:02 +0100)
commita9a483f28f5f4b8955aac3c3ba7752d6c709a2e7
tree2bbed118b54b67ebf9a74949ad0fb40199047418
parent99d3e56dde164652555cf7ea4a04e3f1851575b4
Bluetooth: hci_qca: Replace devm_gpiod_get() with devm_gpiod_get_optional()

This patch replaces devm_gpiod_get() with devm_gpiod_get_optional() to get
bt_en and replaces devm_clk_get() with devm_clk_get_optional() to get
susclk. It also uses NULL check to determine whether the resource is
available or not.

Fixes: e97b90cb94e4 ("Bluetooth: hci_qca: Make bt_en and susclk not mandatory for QCA Rome")
Signed-off-by: Rocky Liao <rjliao@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c