1
0
Fork 0

MLK-17400-02 gpio: max732x: add device reset support

Add device reset for max732x driver.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
5.4-rM2-2.2.x-imx-squashed
Fugang Duan 2018-01-17 15:36:39 +08:00 committed by Dong Aisheng
parent 219d54332a
commit 01f989853e
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#include <linux/i2c.h>
#include <linux/platform_data/max732x.h>
#include <linux/of.h>
#include <linux/reset.h>
/*
@ -639,6 +640,10 @@ static int max732x_probe(struct i2c_client *client,
return -ENOMEM;
chip->client = client;
ret = device_reset(&client->dev);
if (ret == -EPROBE_DEFER)
return ret;
nr_port = max732x_setup_gpio(chip, id, pdata->gpio_base);
chip->gpio_chip.parent = &client->dev;