提交 78afe83c 编写于 作者: H Hauke Mehrtens 提交者: 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: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 61ed53de
......@@ -132,7 +132,7 @@ static bool bcma_is_core_needed_early(u16 core_id)
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,
struct bcma_device *core)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册