summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gma500/mdfld_dsi_dbi.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2011-07-11 19:40:34 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-15 19:05:00 +0200
commitf00dfacb5123f2c439973347bf9ec7ebf3af8719 (patch)
treee3c9c1ae13de4f84c54bbcd0d42f7c1587943c1a /drivers/staging/gma500/mdfld_dsi_dbi.c
parent18a4ca2a11ce6c4adf6f5933a65e1104fbc5cd77 (diff)
downloadop-kernel-dev-f00dfacb5123f2c439973347bf9ec7ebf3af8719.zip
op-kernel-dev-f00dfacb5123f2c439973347bf9ec7ebf3af8719.tar.gz
gma500: don't dynamically allocate the psb_gtt struct
It's part of the psb_device so just make it part of the struct not a pointer. This does cause a bit of noise shuffling indirections. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/gma500/mdfld_dsi_dbi.c')
-rw-r--r--drivers/staging/gma500/mdfld_dsi_dbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gma500/mdfld_dsi_dbi.c b/drivers/staging/gma500/mdfld_dsi_dbi.c
index 4897345..1421f49 100644
--- a/drivers/staging/gma500/mdfld_dsi_dbi.c
+++ b/drivers/staging/gma500/mdfld_dsi_dbi.c
@@ -769,7 +769,7 @@ struct mdfld_dsi_encoder *mdfld_dsi_dbi_init(struct drm_device *dev,
struct drm_connector *connector = NULL;
struct drm_encoder *encoder = NULL;
struct drm_display_mode *fixed_mode = NULL;
- struct psb_gtt *pg = dev_priv ? (dev_priv->pg) : NULL;
+ struct psb_gtt *pg = dev_priv ? (&dev_priv->gtt) : NULL;
#ifdef CONFIG_MDFLD_DSI_DPU
struct mdfld_dbi_dpu_info *dpu_info = dev_priv ? (dev_priv->dbi_dpu_info) : NULL;
OpenPOWER on IntegriCloud