Commit 78afe83c authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by John W. Linville

bcma: fix build when CONFIG_OF_ADDRESS is not set

Commit 2101e533 ("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'

Fixes: 2101e533 ("bcma: register bcma as device tree driver")
Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 61ed53de
...@@ -132,7 +132,7 @@ static bool bcma_is_core_needed_early(u16 core_id) ...@@ -132,7 +132,7 @@ static bool bcma_is_core_needed_early(u16 core_id)
return false; return false;
} }
#ifdef CONFIG_OF #if defined(CONFIG_OF) && defined(CONFIG_OF_ADDRESS)
static struct device_node *bcma_of_find_child_device(struct platform_device *parent, static struct device_node *bcma_of_find_child_device(struct platform_device *parent,
struct bcma_device *core) struct bcma_device *core)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment