* [PATCH] mfd: Guard max77686_pmic_dt_match with CONFIG_OF
@ 2012-07-09 14:29 Axel Lin
2012-07-10 9:01 ` Samuel Ortiz
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-07-09 14:29 UTC (permalink / raw)
To: SamuelOrtiz
Cc: Chiwoong Byun, Jonghwa Lee, Myungjoo Ham, Kyungmin Park,
Yadwinder Singh Brar, linux-kernel
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>
---
drivers/mfd/max77686.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
index 3e31d05..c03e12b 100644
--- a/drivers/mfd/max77686.c
+++ b/drivers/mfd/max77686.c
@@ -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", },
@@ -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)
{
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mfd: Guard max77686_pmic_dt_match with CONFIG_OF
2012-07-09 14:29 [PATCH] mfd: Guard max77686_pmic_dt_match with CONFIG_OF Axel Lin
@ 2012-07-10 9:01 ` Samuel Ortiz
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2012-07-10 9:01 UTC (permalink / raw)
To: Axel Lin
Cc: Chiwoong Byun, Jonghwa Lee, Myungjoo Ham, Kyungmin Park,
Yadwinder Singh Brar, linux-kernel
Hi Axel,
On Mon, Jul 09, 2012 at 10:29:00PM +0800, Axel Lin wrote:
> 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>
> ---
> drivers/mfd/max77686.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Thanks, patch applied.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-10 8:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09 14:29 [PATCH] mfd: Guard max77686_pmic_dt_match with CONFIG_OF Axel Lin
2012-07-10 9:01 ` Samuel Ortiz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).