Commit 41c24346 authored by Inki Dae's avatar Inki Dae Committed by Dave Airlie

drm/exynos: added device object as argument of subdrv_probe().

sub drivers should refer to its own device object to access
its own context.
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 8e9cc6a1
......@@ -55,7 +55,7 @@ static int exynos_drm_subdrv_probe(struct drm_device *dev,
*
* P.S. note that this driver is considered for modularization.
*/
ret = subdrv->probe(dev);
ret = subdrv->probe(dev, subdrv->manager.dev);
if (ret)
return ret;
}
......
......@@ -219,7 +219,7 @@ struct exynos_drm_subdrv {
struct list_head list;
struct drm_device *drm_dev;
int (*probe)(struct drm_device *dev);
int (*probe)(struct drm_device *drm_dev, struct device *dev);
void (*remove)(struct drm_device *dev);
struct exynos_drm_manager manager;
......
......@@ -538,7 +538,7 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id)
return IRQ_HANDLED;
}
static int fimd_subdrv_probe(struct drm_device *drm_dev)
static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
{
struct drm_driver *drm_driver = drm_dev->driver;
......
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