diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-05-19 12:54:05 +0200 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-06-01 19:07:11 +0200 |
commit | 3164605422d0a8b4b0b130fdf5f18cb3d023b77f (patch) | |
tree | eaa7865d15646219a21746e2ac33a9aada9b27b7 /drivers/gpu/drm/exynos/exynos_drm_rotator.c | |
parent | drm/exynos/ipp: correct ipp_id field initialization (diff) | |
download | linux-3164605422d0a8b4b0b130fdf5f18cb3d023b77f.tar.xz linux-3164605422d0a8b4b0b130fdf5f18cb3d023b77f.zip |
drm/exynos/ipp: simplify property list allocation
prop_list is always allocated, so instead of allocating it dynamically
the pointer can be replaced by the structure itself.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_rotator.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_rotator.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c index c67542750b6a..f01fbb6dc1f0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c @@ -470,11 +470,7 @@ static struct exynos_drm_ipp_ops rot_dst_ops = { static int rotator_init_prop_list(struct exynos_drm_ippdrv *ippdrv) { - struct drm_exynos_ipp_prop_list *prop_list; - - prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL); - if (!prop_list) - return -ENOMEM; + struct drm_exynos_ipp_prop_list *prop_list = &ippdrv->prop_list; prop_list->version = 1; prop_list->flip = (1 << EXYNOS_DRM_FLIP_VERTICAL) | @@ -487,8 +483,6 @@ static int rotator_init_prop_list(struct exynos_drm_ippdrv *ippdrv) prop_list->crop = 0; prop_list->scale = 0; - ippdrv->prop_list = prop_list; - return 0; } |