OSDN Git Service

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)
commit77131dfec6af114efd32610b4a6bbecd934e37d5
tree2bbed118b54b67ebf9a74949ad0fb40199047418
parenteb82dfe642b9c573d67bcc46ee0dfb8559b5cbfa
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: 8a208b24d770 ("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