Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.o
drivers/mfd/ab8500-core.c:623: warning: 'ab8500_debug_resources' defined but not used

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Axel Lin and committed by
Samuel Ortiz
df720647 8653be1a

+2
+2
drivers/mfd/ab8500-core.c
··· 620 620 621 621 static struct resource __devinitdata ab8500_chargalg_resources[] = {}; 622 622 623 + #ifdef CONFIG_DEBUG_FS 623 624 static struct resource __devinitdata ab8500_debug_resources[] = { 624 625 { 625 626 .name = "IRQ_FIRST", ··· 635 634 .flags = IORESOURCE_IRQ, 636 635 }, 637 636 }; 637 + #endif 638 638 639 639 static struct resource __devinitdata ab8500_usb_resources[] = { 640 640 {