]> Git Repo - linux.git/commit
power: reset: reboot-mode: fix build error of missing ioremap/iounmap on UM
authorAndy Yan <[email protected]>
Fri, 12 Aug 2016 10:01:50 +0000 (18:01 +0800)
committerSebastian Reichel <[email protected]>
Fri, 12 Aug 2016 20:42:36 +0000 (22:42 +0200)
commit7a4947cf6f26b7d0a5db260d212f6df41a563d23
tree1306026e4a1e2372b02eb198fbbbf860e693cdec
parent5381cfb6f0422da24cfa9da35b0433c0415830e0
power: reset: reboot-mode: fix build error of missing ioremap/iounmap on UM

commit 4fcd504edbf7 ("power: reset: add reboot mode driver") uses api from
syscon, and syscon uses ioremap/iounmap which depends on HAS_IOMEM, so
let's depend on MFD_SYSCON instead of selecting it directly to avoid the
um-allyesconfig like build error on archs that without iomem:

drivers/mfd/syscon.c: In function 'of_syscon_register':
drivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap' [-Werror=implicit-function-declaration]
  base = ioremap(res.start, resource_size(&res));
         ^
drivers/mfd/syscon.c:67:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  base = ioremap(res.start, resource_size(&res));
       ^
drivers/mfd/syscon.c:109:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
  iounmap(base);
  ^

Reported-by: Kbuild test robot <[email protected]>
Fixes: 4fcd504edbf7("power: reset: add reboot mode driver")
Signed-off-by: Andy Yan <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
drivers/power/reset/Kconfig
This page took 0.045207 seconds and 4 git commands to generate.