Loading drivers/power/smb135x-charger.c +8 −1 Original line number Diff line number Diff line Loading @@ -2015,7 +2015,7 @@ static int smb135x_charger_probe(struct i2c_client *client, int rc; struct smb135x_chg *chip; struct power_supply *usb_psy; u8 version; u8 version, reg = 0; usb_psy = power_supply_get_by_name("usb"); if (!usb_psy) { Loading @@ -2033,6 +2033,13 @@ static int smb135x_charger_probe(struct i2c_client *client, chip->dev = &client->dev; chip->usb_psy = usb_psy; /* probe the device to check if its actually connected */ rc = smb135x_read(chip, CFG_4_REG, ®); if (rc) { pr_err("Failed to detect SMB135x, device may be absent\n"); return -ENODEV; } rc = smb_parse_dt(chip); if (rc < 0) { dev_err(&client->dev, "Unable to parse DT nodes\n"); Loading Loading
drivers/power/smb135x-charger.c +8 −1 Original line number Diff line number Diff line Loading @@ -2015,7 +2015,7 @@ static int smb135x_charger_probe(struct i2c_client *client, int rc; struct smb135x_chg *chip; struct power_supply *usb_psy; u8 version; u8 version, reg = 0; usb_psy = power_supply_get_by_name("usb"); if (!usb_psy) { Loading @@ -2033,6 +2033,13 @@ static int smb135x_charger_probe(struct i2c_client *client, chip->dev = &client->dev; chip->usb_psy = usb_psy; /* probe the device to check if its actually connected */ rc = smb135x_read(chip, CFG_4_REG, ®); if (rc) { pr_err("Failed to detect SMB135x, device may be absent\n"); return -ENODEV; } rc = smb_parse_dt(chip); if (rc < 0) { dev_err(&client->dev, "Unable to parse DT nodes\n"); Loading