Skip to content

Commit

Permalink
gma500: mdfld_dsi_output_init() drop unused parameter
Browse files Browse the repository at this point in the history
Nobody uses 'config' parameter.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Kirill A. Shutemov authored and Dave Airlie committed Mar 10, 2012
1 parent 6aa1ead commit fda95c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
18 changes: 6 additions & 12 deletions drivers/gpu/drm/gma500/mdfld_dsi_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ int mdfld_dsi_panel_reset(int pipe)
*/
void mdfld_dsi_output_init(struct drm_device *dev,
int pipe,
struct mdfld_dsi_config *config,
const struct panel_funcs *p_vid_funcs)
{
struct mdfld_dsi_config *dsi_config;
Expand All @@ -538,18 +537,13 @@ void mdfld_dsi_output_init(struct drm_device *dev,

dsi_connector->pipe = pipe;

/*set DSI config*/
if (config)
dsi_config = config;
else {
dsi_config = kzalloc(sizeof(struct mdfld_dsi_config),
GFP_KERNEL);
if (!dsi_config) {
DRM_ERROR("cannot allocate memory for DSI config\n");
goto dsi_init_err0;
}
mdfld_dsi_get_default_config(dev, dsi_config, pipe);
dsi_config = kzalloc(sizeof(struct mdfld_dsi_config),
GFP_KERNEL);
if (!dsi_config) {
DRM_ERROR("cannot allocate memory for DSI config\n");
goto dsi_init_err0;
}
mdfld_dsi_get_default_config(dev, dsi_config, pipe);

dsi_connector->private = dsi_config;

Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/gma500/mdfld_dsi_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ extern void mdfld_dsi_brightness_control(struct drm_device *dev, int pipe,
int level);
extern void mdfld_dsi_output_init(struct drm_device *dev,
int pipe,
struct mdfld_dsi_config *config,
const struct panel_funcs *p_vid_funcs);
extern void mdfld_dsi_controller_init(struct mdfld_dsi_config *dsi_config,
int pipe);
Expand Down
9 changes: 3 additions & 6 deletions drivers/gpu/drm/gma500/mdfld_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,14 @@ static void mdfld_init_panel(struct drm_device *dev, int mipi_pipe,
{
switch (p_type) {
case TPO_VID:
mdfld_dsi_output_init(dev, mipi_pipe, NULL,
&mdfld_tpo_vid_funcs);
mdfld_dsi_output_init(dev, mipi_pipe, &mdfld_tpo_vid_funcs);
break;
case TC35876X:
tc35876x_init(dev);
mdfld_dsi_output_init(dev, mipi_pipe, NULL,
&mdfld_tc35876x_funcs);
mdfld_dsi_output_init(dev, mipi_pipe, &mdfld_tc35876x_funcs);
break;
case TMD_VID:
mdfld_dsi_output_init(dev, mipi_pipe, NULL,
&mdfld_tmd_vid_funcs);
mdfld_dsi_output_init(dev, mipi_pipe, &mdfld_tmd_vid_funcs);
break;
case HDMI:
/* if (dev_priv->mdfld_hdmi_present)
Expand Down

0 comments on commit fda95c2

Please sign in to comment.