Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df720647 authored by Axel Lin's avatar Axel Lin Committed by Samuel Ortiz
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 8653be1a
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -620,6 +620,7 @@ static struct resource __devinitdata ab8500_fg_resources[] = {


static struct resource __devinitdata ab8500_chargalg_resources[] = {};
static struct resource __devinitdata ab8500_chargalg_resources[] = {};


#ifdef CONFIG_DEBUG_FS
static struct resource __devinitdata ab8500_debug_resources[] = {
static struct resource __devinitdata ab8500_debug_resources[] = {
	{
	{
		.name	= "IRQ_FIRST",
		.name	= "IRQ_FIRST",
@@ -634,6 +635,7 @@ static struct resource __devinitdata ab8500_debug_resources[] = {
		.flags	= IORESOURCE_IRQ,
		.flags	= IORESOURCE_IRQ,
	},
	},
};
};
#endif


static struct resource __devinitdata ab8500_usb_resources[] = {
static struct resource __devinitdata ab8500_usb_resources[] = {
	{
	{