Loading drivers/power/smb135x-charger.c +7 −7 Original line number Diff line number Diff line Loading @@ -1727,13 +1727,6 @@ static int smb135x_parallel_set_chg_present(struct smb135x_chg *chip, u8 val; int rc; /* Check if SMB135x is present */ rc = smb135x_read(chip, VERSION1_REG, &val); if (rc) { pr_debug("Failed to detect smb135x-parallel charger may be absent\n"); return -ENODEV; } if (present == chip->parallel_charger_present) { pr_debug("present %d -> %d, skipping\n", chip->parallel_charger_present, present); Loading @@ -1741,6 +1734,13 @@ static int smb135x_parallel_set_chg_present(struct smb135x_chg *chip, } if (present) { /* Check if SMB135x is present */ rc = smb135x_read(chip, VERSION1_REG, &val); if (rc) { pr_debug("Failed to detect smb135x-parallel charger may be absent\n"); return -ENODEV; } rc = smb135x_enable_volatile_writes(chip); if (rc < 0) { dev_err(chip->dev, Loading Loading
drivers/power/smb135x-charger.c +7 −7 Original line number Diff line number Diff line Loading @@ -1727,13 +1727,6 @@ static int smb135x_parallel_set_chg_present(struct smb135x_chg *chip, u8 val; int rc; /* Check if SMB135x is present */ rc = smb135x_read(chip, VERSION1_REG, &val); if (rc) { pr_debug("Failed to detect smb135x-parallel charger may be absent\n"); return -ENODEV; } if (present == chip->parallel_charger_present) { pr_debug("present %d -> %d, skipping\n", chip->parallel_charger_present, present); Loading @@ -1741,6 +1734,13 @@ static int smb135x_parallel_set_chg_present(struct smb135x_chg *chip, } if (present) { /* Check if SMB135x is present */ rc = smb135x_read(chip, VERSION1_REG, &val); if (rc) { pr_debug("Failed to detect smb135x-parallel charger may be absent\n"); return -ENODEV; } rc = smb135x_enable_volatile_writes(chip); if (rc < 0) { dev_err(chip->dev, Loading