Skip to content

Commit a3a446c

Browse files
l1kholtmann
authored andcommitted
Bluetooth: Depend on rather than select GPIOLIB
Commit 27378f4 ("Bluetooth: Avoid WARN splat due to missing GPIOLIB") amended Kconfig to select GPIOLIB if BT_HCIUART_NOKIA, BT_HCIUART_INTEL or BT_HCIUART_BCM is enabled since all three drivers require it to function. The diagnosis was correct but the treatment was not. As stated in Documentation/gpio/consumer.txt: Guidelines for GPIOs consumers ============================== Drivers that can't work without standard GPIO calls should have Kconfig entries that depend on GPIOLIB. ^^^^^^^^^ Fix it. Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Lukas Wunner <lukas@wunner.de> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent b71b25f commit a3a446c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/bluetooth/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ config BT_HCIUART_NOKIA
108108
tristate "UART Nokia H4+ protocol support"
109109
depends on BT_HCIUART
110110
depends on BT_HCIUART_SERDEV
111+
depends on GPIOLIB
111112
depends on PM
112113
select BT_HCIUART_H4
113114
select BT_BCM
114-
select GPIOLIB
115115
help
116116
Nokia H4+ is serial protocol for communication between Bluetooth
117117
device and host. This protocol is required for Bluetooth devices
@@ -170,9 +170,9 @@ config BT_HCIUART_3WIRE
170170
config BT_HCIUART_INTEL
171171
bool "Intel protocol support"
172172
depends on BT_HCIUART
173+
depends on GPIOLIB
173174
select BT_HCIUART_H4
174175
select BT_INTEL
175-
select GPIOLIB
176176
help
177177
The Intel protocol support enables Bluetooth HCI over serial
178178
port interface for Intel Bluetooth controllers.
@@ -184,9 +184,9 @@ config BT_HCIUART_BCM
184184
depends on BT_HCIUART
185185
depends on BT_HCIUART_SERDEV
186186
depends on (!ACPI || SERIAL_DEV_CTRL_TTYPORT)
187+
depends on GPIOLIB
187188
select BT_HCIUART_H4
188189
select BT_BCM
189-
select GPIOLIB
190190
help
191191
The Broadcom protocol support enables Bluetooth HCI over serial
192192
port interface for Broadcom Bluetooth controllers.

0 commit comments

Comments
 (0)