From 1fead3f399ce7b508b05d0cc9d06d534ffac952c Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Wed, 16 Oct 2013 14:26:55 +0530 Subject: mfd: tps65910: Include linux/of.h header 'of_match_ptr' is defined in linux/of.h. Include it explicitly to avoid breakage in the future. Signed-off-by: Sachin Kamat Signed-off-by: Lee Jones --- drivers/mfd/tps65910.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/mfd/tps65910.c') diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index d7927720483..72f2e789ab8 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -25,6 +25,7 @@ #include #include #include +#include #include static struct resource rtc_resources[] = { -- cgit v1.2.3-70-g09d2 From 34c5c735a89bc0ad5fab1c29b9f425b77fbb7ae7 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Wed, 26 Sep 2012 18:18:04 +0530 Subject: mfd: tps65910: Remove warning during dt node parsing Driver throw the warning message if dt node does not have the info for VMBCH-Threshold and VMBCH2-Threshold. These properties are optional property and hence it is not mandatory to have these on DT node and in this case it should not throw the warning message. It creates noise from driver as follows: [ 0.384605] tps65910 4-002d: VMBCH-Threshold not specified [ 0.384616] tps65910 4-002d: VMBCH2-Threshold not specified Removing the warning message from driver. Signed-off-by: Laxman Dewangan Signed-off-by: Samuel Ortiz --- drivers/mfd/tps65910.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'drivers/mfd/tps65910.c') diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index d7927720483..78ffe6e53eb 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -410,14 +410,10 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, ret = of_property_read_u32(np, "ti,vmbch-threshold", &prop); if (!ret) board_info->vmbch_threshold = prop; - else if (*chip_id == TPS65911) - dev_warn(&client->dev, "VMBCH-Threshold not specified"); ret = of_property_read_u32(np, "ti,vmbch2-threshold", &prop); if (!ret) board_info->vmbch2_threshold = prop; - else if (*chip_id == TPS65911) - dev_warn(&client->dev, "VMBCH2-Threshold not specified"); prop = of_property_read_bool(np, "ti,en-ck32k-xtal"); board_info->en_ck32k_xtal = prop; -- cgit v1.2.3-70-g09d2