regulator: Remove all platform_set_drvdata(pdev, NULL) in drivers

Since 0998d06310 "device-core: Ensure drvdata = NULL when no driver is bound",
this is done by driver core after device_release or on probe failure.
Thus we can remove all platform_set_drvdata(pdev, NULL) in drivers.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Bu işleme şunda yer alıyor:
Axel Lin
2013-05-03 20:46:10 +08:00
işlemeyi yapan: Mark Brown
ebeveyn f722406faa
işleme 405c54009c
15 değiştirilmiş dosya ile 0 ekleme ve 29 silme

Dosyayı Görüntüle

@@ -250,7 +250,6 @@ static int wm8400_regulator_remove(struct platform_device *pdev)
{
struct regulator_dev *rdev = platform_get_drvdata(pdev);
platform_set_drvdata(pdev, NULL);
regulator_unregister(rdev);
return 0;