mirror of https://gitee.com/openkylin/linux.git
regulator: tps6586x - add regulator_unregister() in tps6586x_regulator_remove()
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mike Rapoport <mike@compulab.co.il> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
8f1f151ed8
commit
e7973c3cb3
|
@ -357,13 +357,16 @@ static int __devinit tps6586x_regulator_probe(struct platform_device *pdev)
|
||||||
return PTR_ERR(rdev);
|
return PTR_ERR(rdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
platform_set_drvdata(pdev, ri);
|
platform_set_drvdata(pdev, rdev);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __devexit tps6586x_regulator_remove(struct platform_device *pdev)
|
static int __devexit tps6586x_regulator_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
|
struct regulator_dev *rdev = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
regulator_unregister(rdev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue