]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: fix build when CONFIG_OF_ADDRESS is not set
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 9 Oct 2014 21:39:41 +0000 (23:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Oct 2014 18:02:05 +0000 (14:02 -0400)
commit9f0ac6d94f1cc3ca0f2d30466b60f8c4d2b05620
tree5ca6e257e184a604fcd6bd75af9735bf7913dd40
parent9867600b664a0cf0283eb93138bb4ecafca1d7e7
bcma: fix build when CONFIG_OF_ADDRESS is not set

Commit 4952e719cd4e ("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: 4952e719cd4e ("bcma: register bcma as device tree driver")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/main.c