pwm: pwm-qti-lpg: Fix usage of pwmchip_remove()

pwmchip_remove() doesn't return int anymore. Fix it. Since rc
doesn't have any use, remove it.

Change-Id: I7d07d5c9f02a59edd7d0da5353502536d9ec16f8
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2021-09-22 20:32:24 -07:00 committed by David Collins
parent 189c045715
commit ae52ee9ba4

View File

@ -1995,17 +1995,13 @@ static int qpnp_lpg_probe(struct platform_device *pdev)
static int qpnp_lpg_remove(struct platform_device *pdev)
{
struct qpnp_lpg_chip *chip = dev_get_drvdata(&pdev->dev);
int rc = 0;
of_node_put(chip->pbs_dev_node);
rc = pwmchip_remove(&chip->pwm_chip);
if (rc < 0)
dev_err(chip->dev, "Remove pwmchip failed, rc=%d\n", rc);
pwmchip_remove(&chip->pwm_chip);
mutex_destroy(&chip->bus_lock);
dev_set_drvdata(chip->dev, NULL);
return rc;
return 0;
}
static const struct of_device_id qpnp_lpg_of_match[] = {