diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-09 10:29:00 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-10 05:00:37 -0400 |
commit | 2984fc0093268cfffd39725a70078396c5fdef2a (patch) | |
tree | 15259dbb31aaaa1d4663d894ded6dee46eba470e /drivers/mfd/max77686.c | |
parent | 2985c29c196418b8f666bc9240c922aa56bff599 (diff) |
mfd: Guard max77686_pmic_dt_match with CONFIG_OF
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>
Diffstat (limited to 'drivers/mfd/max77686.c')
-rw-r--r-- | drivers/mfd/max77686.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index 3e31d05906b2..c03e12b51924 100644 --- a/drivers/mfd/max77686.c +++ b/drivers/mfd/max77686.c | |||
@@ -34,11 +34,6 @@ | |||
34 | 34 | ||
35 | #define I2C_ADDR_RTC (0x0C >> 1) | 35 | #define I2C_ADDR_RTC (0x0C >> 1) |
36 | 36 | ||
37 | static struct of_device_id __devinitdata max77686_pmic_dt_match[] = { | ||
38 | {.compatible = "maxim,max77686", .data = 0}, | ||
39 | {}, | ||
40 | }; | ||
41 | |||
42 | static struct mfd_cell max77686_devs[] = { | 37 | static struct mfd_cell max77686_devs[] = { |
43 | { .name = "max77686-pmic", }, | 38 | { .name = "max77686-pmic", }, |
44 | { .name = "max77686-rtc", }, | 39 | { .name = "max77686-rtc", }, |
@@ -50,6 +45,11 @@ static struct regmap_config max77686_regmap_config = { | |||
50 | }; | 45 | }; |
51 | 46 | ||
52 | #ifdef CONFIG_OF | 47 | #ifdef CONFIG_OF |
48 | static struct of_device_id __devinitdata max77686_pmic_dt_match[] = { | ||
49 | {.compatible = "maxim,max77686", .data = 0}, | ||
50 | {}, | ||
51 | }; | ||
52 | |||
53 | static struct max77686_platform_data *max77686_i2c_parse_dt_pdata(struct device | 53 | static struct max77686_platform_data *max77686_i2c_parse_dt_pdata(struct device |
54 | *dev) | 54 | *dev) |
55 | { | 55 | { |