提交 29cb6025 编写于 作者: I Inki Dae

drm/exynos: added device object to subdrv's remove callback as argument

when remove callback of exynos_drm_subdrv is called, it could need
device object for sub driver to control things specific to hw such as
runtime pm.
Signed-off-by: NInki Dae <inki.dae@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
上级 268d2837
...@@ -94,7 +94,7 @@ static void exynos_drm_subdrv_remove(struct drm_device *dev, ...@@ -94,7 +94,7 @@ static void exynos_drm_subdrv_remove(struct drm_device *dev,
DRM_DEBUG_DRIVER("%s\n", __FILE__); DRM_DEBUG_DRIVER("%s\n", __FILE__);
if (subdrv->remove) if (subdrv->remove)
subdrv->remove(dev); subdrv->remove(dev, subdrv->dev);
if (subdrv->encoder) { if (subdrv->encoder) {
struct drm_encoder *encoder = subdrv->encoder; struct drm_encoder *encoder = subdrv->encoder;
......
...@@ -266,7 +266,7 @@ struct exynos_drm_subdrv { ...@@ -266,7 +266,7 @@ struct exynos_drm_subdrv {
struct exynos_drm_manager *manager; struct exynos_drm_manager *manager;
int (*probe)(struct drm_device *drm_dev, struct device *dev); int (*probe)(struct drm_device *drm_dev, struct device *dev);
void (*remove)(struct drm_device *dev); void (*remove)(struct drm_device *drm_dev, struct device *dev);
int (*open)(struct drm_device *drm_dev, struct device *dev, int (*open)(struct drm_device *drm_dev, struct device *dev,
struct drm_file *file); struct drm_file *file);
void (*close)(struct drm_device *drm_dev, struct device *dev, void (*close)(struct drm_device *drm_dev, struct device *dev,
......
...@@ -678,7 +678,7 @@ static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev) ...@@ -678,7 +678,7 @@ static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
return 0; return 0;
} }
static void fimd_subdrv_remove(struct drm_device *drm_dev) static void fimd_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__); DRM_DEBUG_KMS("%s\n", __FILE__);
......
...@@ -453,7 +453,7 @@ static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev) ...@@ -453,7 +453,7 @@ static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
return 0; return 0;
} }
static void vidi_subdrv_remove(struct drm_device *drm_dev) static void vidi_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__); DRM_DEBUG_KMS("%s\n", __FILE__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册