]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: sm750fb: remove unused field in lynx_cursor
authorMike Rapoport <mike.rapoport@gmail.com>
Mon, 26 Oct 2015 07:06:05 +0000 (09:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:04:57 +0000 (17:04 +0900)
The lynx_share field in lynx_cursor structure is never used and can be
removed.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c
drivers/staging/sm750fb/sm750.h

index 8f6908ba6f523f2492058e6117c67b8b1d08366c..616479e3a7fb23d0baab93e5eb7717d37dac178d 100644 (file)
@@ -790,7 +790,6 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index)
        crtc->cursor.size = crtc->cursor.maxH * crtc->cursor.maxW * 2 / 8;
        crtc->cursor.vstart = share->pvMem + crtc->cursor.offset;
 
-       crtc->cursor.share = share;
        memset_io(crtc->cursor.vstart, 0, crtc->cursor.size);
        if (!g_hwcursor) {
                lynxfb_ops.fb_cursor = NULL;
index fbe40a0c2fd432a1270e803f9b546316d77b832d..bd36f22a43ed22cb71942db78a07128f3dca1d26 100644 (file)
@@ -134,8 +134,6 @@ struct lynx_cursor {
        int offset;
        /* mmio addr of hw cursor */
        volatile char __iomem *mmio;
-       /* the lynx_share of this adaptor */
-       struct lynx_share *share;
 };
 
 struct lynxfb_crtc {