Commit fda95c2e authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Dave Airlie

gma500: mdfld_dsi_output_init() drop unused parameter

Nobody uses 'config' parameter.
Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 6aa1ead1
...@@ -511,7 +511,6 @@ int mdfld_dsi_panel_reset(int pipe) ...@@ -511,7 +511,6 @@ int mdfld_dsi_panel_reset(int pipe)
*/ */
void mdfld_dsi_output_init(struct drm_device *dev, void mdfld_dsi_output_init(struct drm_device *dev,
int pipe, int pipe,
struct mdfld_dsi_config *config,
const struct panel_funcs *p_vid_funcs) const struct panel_funcs *p_vid_funcs)
{ {
struct mdfld_dsi_config *dsi_config; struct mdfld_dsi_config *dsi_config;
...@@ -538,18 +537,13 @@ void mdfld_dsi_output_init(struct drm_device *dev, ...@@ -538,18 +537,13 @@ void mdfld_dsi_output_init(struct drm_device *dev,
dsi_connector->pipe = pipe; dsi_connector->pipe = pipe;
/*set DSI config*/ dsi_config = kzalloc(sizeof(struct mdfld_dsi_config),
if (config) GFP_KERNEL);
dsi_config = config; if (!dsi_config) {
else { DRM_ERROR("cannot allocate memory for DSI config\n");
dsi_config = kzalloc(sizeof(struct mdfld_dsi_config), goto dsi_init_err0;
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);
} }
mdfld_dsi_get_default_config(dev, dsi_config, pipe);
dsi_connector->private = dsi_config; dsi_connector->private = dsi_config;
......
...@@ -375,7 +375,6 @@ extern void mdfld_dsi_brightness_control(struct drm_device *dev, int pipe, ...@@ -375,7 +375,6 @@ extern void mdfld_dsi_brightness_control(struct drm_device *dev, int pipe,
int level); int level);
extern void mdfld_dsi_output_init(struct drm_device *dev, extern void mdfld_dsi_output_init(struct drm_device *dev,
int pipe, int pipe,
struct mdfld_dsi_config *config,
const struct panel_funcs *p_vid_funcs); const struct panel_funcs *p_vid_funcs);
extern void mdfld_dsi_controller_init(struct mdfld_dsi_config *dsi_config, extern void mdfld_dsi_controller_init(struct mdfld_dsi_config *dsi_config,
int pipe); int pipe);
......
...@@ -42,17 +42,14 @@ static void mdfld_init_panel(struct drm_device *dev, int mipi_pipe, ...@@ -42,17 +42,14 @@ static void mdfld_init_panel(struct drm_device *dev, int mipi_pipe,
{ {
switch (p_type) { switch (p_type) {
case TPO_VID: case TPO_VID:
mdfld_dsi_output_init(dev, mipi_pipe, NULL, mdfld_dsi_output_init(dev, mipi_pipe, &mdfld_tpo_vid_funcs);
&mdfld_tpo_vid_funcs);
break; break;
case TC35876X: case TC35876X:
tc35876x_init(dev); tc35876x_init(dev);
mdfld_dsi_output_init(dev, mipi_pipe, NULL, mdfld_dsi_output_init(dev, mipi_pipe, &mdfld_tc35876x_funcs);
&mdfld_tc35876x_funcs);
break; break;
case TMD_VID: case TMD_VID:
mdfld_dsi_output_init(dev, mipi_pipe, NULL, mdfld_dsi_output_init(dev, mipi_pipe, &mdfld_tmd_vid_funcs);
&mdfld_tmd_vid_funcs);
break; break;
case HDMI: case HDMI:
/* if (dev_priv->mdfld_hdmi_present) /* if (dev_priv->mdfld_hdmi_present)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment