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)
commit78afe83c3b008e25123bd1be36ee4b6595e595d1
tree5ca6e257e184a604fcd6bd75af9735bf7913dd40
parent61ed53deb1c6a4386d8710dbbfcee8779c381931
bcma: fix build when CONFIG_OF_ADDRESS is not set

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'

Fixes: 2101e533f41a ("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