mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
mmi_qc3p_wt6670f: fix wt6670f driver bug
modify wt6670f_i2c_probe code,if gpio_request failed go to gpio_direction_output while dump.So add return before gpio_direction_output. Change-Id: Ia61ec64165a8754a948474ff848b07eaf79968c6 Signed-off-by: wutao <huaqin89@motorola.com> Reviewed-on: https://gerrit.mot.com/2115729 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
75367c2726
commit
5cf523287d
1 changed files with 3 additions and 1 deletions
|
|
@ -462,8 +462,10 @@ static int wt6670f_i2c_probe(struct i2c_client *client,
|
|||
pr_info("[%s] of get wt6670 gpio failed, reset_pin:%d\n",
|
||||
__func__, wt->reset_pin);
|
||||
|
||||
if (gpio_request(wt->reset_pin, "wt6670_reset_pin"))
|
||||
if (gpio_request(wt->reset_pin, "wt6670_reset_pin")) {
|
||||
pr_info("[%s] gpio_request reset failed", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (gpio_direction_output(wt->reset_pin, 0))
|
||||
pr_info("[%s] gpio_direction_output failed", __func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue