mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources
Subsystems (2)
PATCH 1/1 mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources
Fix below build warning if CONFIG_DEBUG_FS is disabled.
CC drivers/mfd/ab8500-core.odrivers/mfd/ab8500-core.c:623: warning: 'ab8500_debug_resources' defined but not used
Signed-off-by Axel Lin <[email protected]>
--- drivers/mfd/ab8500-core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/mfd/ab8500-core.c +2 -0
@@ -620,6 +620,7 @@ static struct resource __devinitdata ab8500_fg_resources[] = {static struct resource __devinitdata ab8500_chargalg_resources[] = {}; +#ifdef CONFIG_DEBUG_FS static struct resource __devinitdata ab8500_debug_resources[] = { { .name = "IRQ_FIRST",
@@ -634,6 +635,7 @@ static struct resource __devinitdata ab8500_debug_resources[] = { .flags = IORESOURCE_IRQ, }, }; +#endif static struct resource __devinitdata ab8500_usb_resources[] = { {
Signature · 1 line
1.7.5.4
Quoted 6 lines · Axel Lin
Fix below build warning if
CONFIG_DEBUG_FSis disabled.?CC ? ? ?drivers/mfd/ab8500-core.o
drivers/mfd/ab8500-core.c:623: warning: 'ab8500_debug_resources' defined but not usedSigned-off-by Axel Lin <[email protected]>
Acked-by Linus Walleij <[email protected]>
Thanks Axel!
Linus Walleij
Hi Axel,
Quoted 5 lines · Axel Lin
Fix below build warning if
CONFIG_DEBUG_FSis disabled.CC
drivers/mfd/ab8500-core.odrivers/mfd/ab8500-core.c:623: warning: 'ab8500_debug_resources' defined but not used
Thanks for the fix, I applied this one to my for-linus branch.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/