diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-03-08 16:02:50 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-10 13:05:51 (GMT) |
commit | fda95c2e7304c9d4d7ed8f2590346acbbfff2f99 (patch) | |
tree | b3cd29d2c41a772d13e5566cc0e9d0b44eafc380 /drivers/gpu/drm/gma500/mdfld_dsi_output.c | |
parent | 6aa1ead1b855819b8b754d0f84f9da6942fe7589 (diff) | |
download | linux-fda95c2e7304c9d4d7ed8f2590346acbbfff2f99.tar.xz |
gma500: mdfld_dsi_output_init() drop unused parameter
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>
Diffstat (limited to 'drivers/gpu/drm/gma500/mdfld_dsi_output.c')
-rw-r--r-- | drivers/gpu/drm/gma500/mdfld_dsi_output.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.c b/drivers/gpu/drm/gma500/mdfld_dsi_output.c index 9338c28..88d330d 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_output.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.c @@ -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; |