Loading arch/arm/mach-msm/rpm-regulator-smd.c +4 −2 Original line number Diff line number Diff line Loading @@ -1281,14 +1281,16 @@ static int rpm_vreg_device_remove(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct rpm_regulator *reg; struct rpm_vreg *rpm_vreg; reg = platform_get_drvdata(pdev); if (reg) { rpm_vreg_lock(reg->rpm_vreg); rpm_vreg = reg->rpm_vreg; rpm_vreg_lock(rpm_vreg); regulator_unregister(reg->rdev); list_del(®->list); kfree(reg); rpm_vreg_unlock(reg->rpm_vreg); rpm_vreg_unlock(rpm_vreg); } else { dev_err(dev, "%s: drvdata missing\n", __func__); return -EINVAL; Loading Loading
arch/arm/mach-msm/rpm-regulator-smd.c +4 −2 Original line number Diff line number Diff line Loading @@ -1281,14 +1281,16 @@ static int rpm_vreg_device_remove(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct rpm_regulator *reg; struct rpm_vreg *rpm_vreg; reg = platform_get_drvdata(pdev); if (reg) { rpm_vreg_lock(reg->rpm_vreg); rpm_vreg = reg->rpm_vreg; rpm_vreg_lock(rpm_vreg); regulator_unregister(reg->rdev); list_del(®->list); kfree(reg); rpm_vreg_unlock(reg->rpm_vreg); rpm_vreg_unlock(rpm_vreg); } else { dev_err(dev, "%s: drvdata missing\n", __func__); return -EINVAL; Loading