Skip to contentSkip to conversation

bcma: Add dependency on OF_ADDRESS

PATCH New Guenter Roeck 1 participant 1 message Oct 9, 2014 Broadcom specific amba driver (bcma)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bcma: Add dependency on OF_ADDRESS

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

drivers/bcma/main.c: In function 'bcma_of_find_child_device':
drivers/bcma/main.c:150:3: error: implicit declaration of function 'of_translate_address'

Only build the bcma driver if OF is not configured or if both OF and OF_ADDRESS are configured to solve the problem.

Fixes 2101e533f41a ("bcma: register bcma as device tree driver")
Cc Hauke Mehrtens <[email protected]>
Cc Arnd Bergmann <[email protected]>

---
v2: Limit additional dependency to '!OF || OF_ADDRESS'.

 drivers/bcma/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bcma/Kconfig +1 -1
index 0ee48be..e240ef0 100644
@@ -1,6 +1,6 @@
 config BCMA_POSSIBLE
 	bool
-	depends on HAS_IOMEM && HAS_DMA
+	depends on HAS_IOMEM && HAS_DMA && (!OF || OF_ADDRESS)
 	default y
 
 menu "Broadcom specific AMBA"
Signature · 1 line
1.9.1