Skip to content

Commit

Permalink
mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Dec 20, 2011
1 parent 8653be1 commit df72064
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/ab8500-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -634,6 +635,7 @@ static struct resource __devinitdata ab8500_debug_resources[] = {
.flags = IORESOURCE_IRQ,
},
};
#endif

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

0 comments on commit df72064

Please sign in to comment.