aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/tps65910.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
index 05d449b33693..be9e07b77325 100644
--- a/drivers/mfd/tps65910.c
+++ b/drivers/mfd/tps65910.c
@@ -146,9 +146,7 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client,
146 struct tps65910_board *board_info; 146 struct tps65910_board *board_info;
147 unsigned int prop; 147 unsigned int prop;
148 const struct of_device_id *match; 148 const struct of_device_id *match;
149 unsigned int prop_array[TPS6591X_MAX_NUM_GPIO];
150 int ret = 0; 149 int ret = 0;
151 int idx;
152 150
153 match = of_match_device(tps65910_of_match, &client->dev); 151 match = of_match_device(tps65910_of_match, &client->dev);
154 if (!match) { 152 if (!match) {
@@ -177,21 +175,8 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client,
177 else if (*chip_id == TPS65911) 175 else if (*chip_id == TPS65911)
178 dev_warn(&client->dev, "VMBCH2-Threshold not specified"); 176 dev_warn(&client->dev, "VMBCH2-Threshold not specified");
179 177
180 ret = of_property_read_u32_array(np, "ti,en-gpio-sleep",
181 prop_array, TPS6591X_MAX_NUM_GPIO);
182 if (!ret)
183 for (idx = 0; idx < ARRAY_SIZE(prop_array); idx++)
184 board_info->en_gpio_sleep[idx] = (prop_array[idx] != 0);
185 else if (ret != -EINVAL) {
186 dev_err(&client->dev,
187 "error reading property ti,en-gpio-sleep: %d\n.", ret);
188 return NULL;
189 }
190
191
192 board_info->irq = client->irq; 178 board_info->irq = client->irq;
193 board_info->irq_base = -1; 179 board_info->irq_base = -1;
194 board_info->gpio_base = -1;
195 180
196 return board_info; 181 return board_info;
197} 182}