|
@@ -37,6 +37,8 @@
|
|
|
#include "dss_features.h"
|
|
|
|
|
|
static struct {
|
|
|
+ struct platform_device *pdev;
|
|
|
+
|
|
|
struct regulator *vdds_dsi_reg;
|
|
|
struct platform_device *dsidev;
|
|
|
|
|
@@ -555,8 +557,11 @@ static int dpi_init_regulator(void)
|
|
|
vdds_dsi = dss_get_vdds_dsi();
|
|
|
|
|
|
if (IS_ERR(vdds_dsi)) {
|
|
|
- DSSERR("can't get VDDS_DSI regulator\n");
|
|
|
- return PTR_ERR(vdds_dsi);
|
|
|
+ vdds_dsi = devm_regulator_get(&dpi.pdev->dev, "vdds_dsi");
|
|
|
+ if (IS_ERR(vdds_dsi)) {
|
|
|
+ DSSERR("can't get VDDS_DSI regulator\n");
|
|
|
+ return PTR_ERR(vdds_dsi);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
dpi.vdds_dsi_reg = vdds_dsi;
|
|
@@ -707,6 +712,8 @@ static int omap_dpi_probe(struct platform_device *pdev)
|
|
|
{
|
|
|
int r;
|
|
|
|
|
|
+ dpi.pdev = pdev;
|
|
|
+
|
|
|
mutex_init(&dpi.lock);
|
|
|
|
|
|
dpi_init_output(pdev);
|