Skip to content

Commit

Permalink
mfd: Guard max77686_pmic_dt_match with CONFIG_OF
Browse files Browse the repository at this point in the history
This fixes below build warning if CONFIG_OF is not set.

  CC      drivers/mfd/max77686.o
drivers/mfd/max77686.c:37:42: warning: 'max77686_pmic_dt_match' defined but not used [-Wunused-variable]

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 Jul 10, 2012
1 parent 2985c29 commit 2984fc0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/mfd/max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@

#define I2C_ADDR_RTC (0x0C >> 1)

static struct of_device_id __devinitdata max77686_pmic_dt_match[] = {
{.compatible = "maxim,max77686", .data = 0},
{},
};

static struct mfd_cell max77686_devs[] = {
{ .name = "max77686-pmic", },
{ .name = "max77686-rtc", },
Expand All @@ -50,6 +45,11 @@ static struct regmap_config max77686_regmap_config = {
};

#ifdef CONFIG_OF
static struct of_device_id __devinitdata max77686_pmic_dt_match[] = {
{.compatible = "maxim,max77686", .data = 0},
{},
};

static struct max77686_platform_data *max77686_i2c_parse_dt_pdata(struct device
*dev)
{
Expand Down

0 comments on commit 2984fc0

Please sign in to comment.