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>
*
* 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;
}
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;
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;