powerpc: Make CONFIG_RTAS_PROC depend on CONFIG_PROC_FS
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 6 May 2013 18:43:39 +0000 (18:43 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 14 May 2013 04:36:32 +0000 (14:36 +1000)
commitb80ec3dc8e100f6c8b27c02cbb6079d401c3a054
tree46c6a42580cc0a569c11d9b77852378c8badae18
parent120496ac2d2d60aee68d3123a68169502a85f4b5
powerpc: Make CONFIG_RTAS_PROC depend on CONFIG_PROC_FS

We are getting build errors with CONFIG_PROC_FS=n:

arch/powerpc/kernel/rtas_flash.c
   In function 'rtas_flash_init':
  745:33: error: unused variable 'f' [-Werror=unused-variable]

But rtas_flash.c should not be built when CONFIG_PROC_FS=n, beacause all
it does is provide a /proc interface to the RTAS flash routines.

CONFIG_RTAS_FLASH already depends on CONFIG_RTAS_PROC, to indicate that
it depends on the RTAS proc support, but CONFIG_RTAS_PROC does not
depend on CONFIG_PROC_FS. So fix that.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/Kconfig