diff options
author | Inki Dae <inki.dae@samsung.com> | 2012-09-05 01:12:06 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-10-03 21:05:59 -0400 |
commit | 29cb602532b0a82f22322cece8a89f022368d557 (patch) | |
tree | fbf75617f5ffec51bab60a468a9c5978d3ead0c1 /drivers/gpu/drm/exynos | |
parent | 268d28371cd326be4dfcd7eba5917bf4b9d30c8f (diff) |
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: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_core.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_vidi.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_core.c b/drivers/gpu/drm/exynos/exynos_drm_core.c index 84dd099eae3b..80cba2f413f4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_core.c +++ b/drivers/gpu/drm/exynos/exynos_drm_core.c | |||
@@ -94,7 +94,7 @@ static void exynos_drm_subdrv_remove(struct drm_device *dev, | |||
94 | DRM_DEBUG_DRIVER("%s\n", __FILE__); | 94 | DRM_DEBUG_DRIVER("%s\n", __FILE__); |
95 | 95 | ||
96 | if (subdrv->remove) | 96 | if (subdrv->remove) |
97 | subdrv->remove(dev); | 97 | subdrv->remove(dev, subdrv->dev); |
98 | 98 | ||
99 | if (subdrv->encoder) { | 99 | if (subdrv->encoder) { |
100 | struct drm_encoder *encoder = subdrv->encoder; | 100 | struct drm_encoder *encoder = subdrv->encoder; |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index e22704b249d7..24c45d86bab0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h | |||
@@ -266,7 +266,7 @@ struct exynos_drm_subdrv { | |||
266 | struct exynos_drm_manager *manager; | 266 | struct exynos_drm_manager *manager; |
267 | 267 | ||
268 | int (*probe)(struct drm_device *drm_dev, struct device *dev); | 268 | int (*probe)(struct drm_device *drm_dev, struct device *dev); |
269 | void (*remove)(struct drm_device *dev); | 269 | void (*remove)(struct drm_device *drm_dev, struct device *dev); |
270 | int (*open)(struct drm_device *drm_dev, struct device *dev, | 270 | int (*open)(struct drm_device *drm_dev, struct device *dev, |
271 | struct drm_file *file); | 271 | struct drm_file *file); |
272 | void (*close)(struct drm_device *drm_dev, struct device *dev, | 272 | void (*close)(struct drm_device *drm_dev, struct device *dev, |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index b19cd93e7047..47396e13b460 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -678,7 +678,7 @@ static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev) | |||
678 | return 0; | 678 | return 0; |
679 | } | 679 | } |
680 | 680 | ||
681 | static void fimd_subdrv_remove(struct drm_device *drm_dev) | 681 | static void fimd_subdrv_remove(struct drm_device *drm_dev, struct device *dev) |
682 | { | 682 | { |
683 | DRM_DEBUG_KMS("%s\n", __FILE__); | 683 | DRM_DEBUG_KMS("%s\n", __FILE__); |
684 | 684 | ||
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index e364165f1a2a..c95f7dedb8a0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c | |||
@@ -453,7 +453,7 @@ static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev) | |||
453 | return 0; | 453 | return 0; |
454 | } | 454 | } |
455 | 455 | ||
456 | static void vidi_subdrv_remove(struct drm_device *drm_dev) | 456 | static void vidi_subdrv_remove(struct drm_device *drm_dev, struct device *dev) |
457 | { | 457 | { |
458 | DRM_DEBUG_KMS("%s\n", __FILE__); | 458 | DRM_DEBUG_KMS("%s\n", __FILE__); |
459 | 459 | ||