Skip to content

Commit

Permalink
OMAPDSS: DSI: use dsi_get_dsidev_id(dsidev) instead of dsidev->id
Browse files Browse the repository at this point in the history
The DSI driver uses dsi_get_dsidev_id() to get the ID number for the DSI
instance. However, there were a few places where dsidev->id was used
instead of the function. Fix those places to use the function.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed May 11, 2012
1 parent 958f271 commit e23d83b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,7 @@ static int dsi_cio_init(struct omap_dss_device *dssdev)

DSSDBGF();

r = dsi->enable_pads(dsidev->id, dsi_get_lane_mask(dssdev));
r = dsi->enable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev));
if (r)
return r;

Expand Down Expand Up @@ -2416,7 +2416,7 @@ static int dsi_cio_init(struct omap_dss_device *dssdev)
dsi_cio_disable_lane_override(dsidev);
err_scp_clk_dom:
dsi_disable_scp_clk(dsidev);
dsi->disable_pads(dsidev->id, dsi_get_lane_mask(dssdev));
dsi->disable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev));
return r;
}

Expand All @@ -2430,7 +2430,7 @@ static void dsi_cio_uninit(struct omap_dss_device *dssdev)

dsi_cio_power(dsidev, DSI_COMPLEXIO_POWER_OFF);
dsi_disable_scp_clk(dsidev);
dsi->disable_pads(dsidev->id, dsi_get_lane_mask(dssdev));
dsi->disable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev));
}

static void dsi_config_tx_fifo(struct platform_device *dsidev,
Expand Down

0 comments on commit e23d83b

Please sign in to comment.