]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/simpledrm: Remove mem field from device structure
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 1 Aug 2022 13:50:24 +0000 (15:50 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 5 Aug 2022 12:14:02 +0000 (14:14 +0200)
Remove the unused mem field from struct simpledrm_device.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220801135028.30647-2-tzimmermann@suse.de
drivers/gpu/drm/tiny/simpledrm.c

index 5422363690e71d6f9a99903290ac218ed5381d8a..c5a0dabfb6df7068b895f5794787bf9bdcbd1c49 100644 (file)
@@ -217,7 +217,6 @@ struct simpledrm_device {
        unsigned int pitch;
 
        /* memory management */
-       struct resource *mem;
        void __iomem *screen_base;
 
        /* modesetting */
@@ -558,7 +557,6 @@ static int simpledrm_device_init_mm(struct simpledrm_device *sdev)
        if (!screen_base)
                return -ENOMEM;
 
-       sdev->mem = mem;
        sdev->screen_base = screen_base;
 
        return 0;