Skip to contentSkip to conversation

Bluetooth: hciuart: add nvmem dependency

PATCH In review Arnd Bergmann 2 participants 2 messages Jan 2, 2018 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: hciuart: add nvmem dependency

When the hci support is built-in, but mvmem is a loadable module, we get a link failure:

drivers/bluetooth/hci_ll.o: In function `hci_ti_probe':
hci_ll.c:(.text+0x226): undefined reference to nvmem_cell_get' hci_ll.c:(.text+0x238): undefined reference to nvmem_cell_read' hci_ll.c:(.text+0x244): undefined reference to `nvmem_cell_put'

This adds another Kconfig dependency to enforce valid configurations.

Fixes 0e58d0cdb3eb ("Bluetooth: hci_ll: Add optional nvmem BD address source")
---
 drivers/bluetooth/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/bluetooth/Kconfig +1 -0
index 41932f0e68d0..d816ce9e23a7 100644
@@ -77,6 +77,7 @@ config BT_HCIBTSDIO
 config BT_HCIUART
 	tristate "HCI UART driver"
 	depends on SERIAL_DEV_BUS || !SERIAL_DEV_BUS
+	depends on NVMEM || !NVMEM
 	depends on TTY
 	help
 	  Bluetooth HCI UART driver.
Signature · 1 line
2.9.0
maintainer
#1 lore raw

Hi Arnd,

Quoted 8 lines

When the hci support is built-in, but mvmem is a loadable module, we get a link failure:

drivers/bluetooth/hci_ll.o: In function `hci_ti_probe':
hci_ll.c:(.text+0x226): undefined reference to nvmem_cell_get' hci_ll.c:(.text+0x238): undefined reference to nvmem_cell_read' hci_ll.c:(.text+0x244): undefined reference to `nvmem_cell_put'

Quoted 7 lines

This adds another Kconfig dependency to enforce valid configurations.

Fixes 0e58d0cdb3eb ("Bluetooth: hci_ll: Add optional nvmem BD address source")

---
drivers/bluetooth/Kconfig | 1 +

1 file changed, 1 insertion(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel