Merge "qcom-charger: Fix crash due to null ptr access of pl psy"
This commit is contained in:
commit
69fd33f749
1 changed files with 6 additions and 6 deletions
|
@ -1884,6 +1884,12 @@ static int smb2_probe(struct platform_device *pdev)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
rc = smb2_init_hw(chip);
|
||||
if (rc < 0) {
|
||||
pr_err("Couldn't initialize hardware rc=%d\n", rc);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
rc = smb2_init_dc_psy(chip);
|
||||
if (rc < 0) {
|
||||
pr_err("Couldn't initialize dc psy rc=%d\n", rc);
|
||||
|
@ -1916,12 +1922,6 @@ static int smb2_probe(struct platform_device *pdev)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
rc = smb2_init_hw(chip);
|
||||
if (rc < 0) {
|
||||
pr_err("Couldn't initialize hardware rc=%d\n", rc);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
rc = smb2_determine_initial_status(chip);
|
||||
if (rc < 0) {
|
||||
pr_err("Couldn't determine initial status rc=%d\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue