gma500: mdfld_dsi_output_init() drop unused parameter
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 8 Mar 2012 16:02:50 +0000 (16:02 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 10 Mar 2012 13:05:51 +0000 (13:05 +0000)
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>
drivers/gpu/drm/gma500/mdfld_dsi_output.c
drivers/gpu/drm/gma500/mdfld_dsi_output.h
drivers/gpu/drm/gma500/mdfld_output.c

index 9338c28f3999bba4e0382c504f0d7a8271f9ebc7..88d330d95f2c904175f821773ef1f15397c2790e 100644 (file)
@@ -511,7 +511,6 @@ gpio_error:
  */
 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;
@@ -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;
 
index 2cdf666536df9954110de3c3d96f6089f0227e86..8e4f717e50f2d666db78b6661d08bb59ec1fe30b 100644 (file)
@@ -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);
index de0ce076573828a85a1ce7ff3712d32919af3e79..c95966bb0c96e9859fc0204f8875e71faa29c228 100644 (file)
@@ -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)