diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-03-23 10:07:22 +0000 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-03-26 21:34:11 +0000 |
commit | df25b3d3af01a1259d0b76bb36503eec56af7118 (patch) | |
tree | e7041f921fb4dc0f9bc3afcc4127951e79d68e92 /drivers | |
parent | df9b97848707b402f9c953d4c31c74d30f03d783 (diff) |
Pass core Glamo device to DRM module
This adds a missing statement to let glamo-drm.c know the core Glamo handle, so
it can manipulate registers such as the 2D and 3D clocks.
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/glamo/glamo-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c index dff7c6c3551..5a8fda2404c 100644 --- a/drivers/mfd/glamo/glamo-core.c +++ b/drivers/mfd/glamo/glamo-core.c @@ -1240,7 +1240,11 @@ static int __init glamo_probe(struct platform_device *pdev) glamo->pdata->glamo_irq_is_wired; /* start creating the siblings */ + glamo->pdata->glamo = glamo; + + /* Command queue device (for DRM) */ glamo_cmdq_dev.dev.parent = &pdev->dev; + glamo_cmdq_dev.dev.platform_data = glamo; mangle_mem_resources(glamo_cmdq_dev.resource, glamo_cmdq_dev.num_resources, glamo->mem); platform_device_register(&glamo_cmdq_dev); |