Skip to content

Commit

Permalink
drm/exynos: added device object as argument of subdrv_probe().
Browse files Browse the repository at this point in the history
sub drivers should refer to its own device object to access
its own context.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Inki Dae authored and Dave Airlie committed Oct 18, 2011
1 parent 8e9cc6a commit 41c2434
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos_drm_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos_drm_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos_drm_fimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 41c2434

Please sign in to comment.