]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: sm750fb: remove clear method from lynxfb_{crtc,output}
authorMike Rapoport <mike.rapoport@gmail.com>
Thu, 1 Oct 2015 09:14:04 +0000 (12:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:50:52 +0000 (11:50 +0200)
The clear methods of lynxfb_crtc and lynxfb_output are empty and
therefore they 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
drivers/staging/sm750fb/sm750_hw.c
drivers/staging/sm750fb/sm750_hw.h

index 646d2814ea5569e71740fdc636ed1a3cf6d8cdc6..494017f5235cd6b55ccfc7cea915be5bb162a2ba 100644 (file)
@@ -680,7 +680,6 @@ static int sm750fb_set_drv(struct lynxfb_par *par)
        crtc->proc_checkMode = hw_sm750_crtc_checkMode;
        crtc->proc_setColReg = hw_sm750_setColReg;
        crtc->proc_panDisplay = hw_sm750_pan_display;
-       crtc->clear = hw_sm750_crtc_clear;
        crtc->line_pad = 16;
        crtc->xpanstep = 8;
        crtc->ypanstep = 1;
@@ -690,7 +689,6 @@ static int sm750fb_set_drv(struct lynxfb_par *par)
 
        output->proc_setBLANK = (share->revid == SM750LE_REVISION_ID) ?
                                 hw_sm750le_setBLANK : hw_sm750_setBLANK;
-       output->clear = hw_sm750_output_clear;
        /* chip specific phase */
        share->accel.de_wait = (share->revid == SM750LE_REVISION_ID) ?
                                hw_sm750le_deWait : hw_sm750_deWait;
@@ -1219,9 +1217,6 @@ static void lynxfb_pci_remove(struct pci_dev *pdev)
                par = info->par;
 
                unregister_framebuffer(info);
-               /* clean crtc & output allocations */
-               par->crtc.clear(&par->crtc);
-               par->output.clear(&par->output);
                /* release frame buffer */
                framebuffer_release(info);
        }
index 1f365aeb5c9778005fce78b7364b38ff443f8d12..52fe945101c8fe255ef67cdf424dc51c4ef51abc 100644 (file)
@@ -113,7 +113,6 @@ struct lynxfb_crtc {
 
        int (*proc_checkMode)(struct lynxfb_crtc*, struct fb_var_screeninfo*);
        int (*proc_setColReg)(struct lynxfb_crtc*, ushort, ushort, ushort, ushort);
-       void (*clear)(struct lynxfb_crtc *);
        /* pan display */
        int (*proc_panDisplay)(struct lynxfb_crtc *,
                               const struct fb_var_screeninfo *,
@@ -144,7 +143,6 @@ struct lynxfb_output {
                                                struct fb_fix_screeninfo*);
 
        int (*proc_setBLANK)(struct lynxfb_output*, int);
-       void  (*clear)(struct lynxfb_output *);
 };
 
 struct lynxfb_par {
index 9c2c28ac5639417659e04a3a9cf8b2026f5f4226..92e194ddb15ab268fc57d661de43b69bcb5f4163 100644 (file)
@@ -232,12 +232,6 @@ int hw_sm750_output_setMode(struct lynxfb_output *output,
        return ret;
 }
 
-void hw_sm750_output_clear(struct lynxfb_output *output)
-{
-
-       return;
-}
-
 int hw_sm750_crtc_checkMode(struct lynxfb_crtc *crtc, struct fb_var_screeninfo *var)
 {
        struct lynx_share *share;
@@ -387,12 +381,6 @@ exit:
        return ret;
 }
 
-void hw_sm750_crtc_clear(struct lynxfb_crtc *crtc)
-{
-
-       return;
-}
-
 int hw_sm750_setColReg(struct lynxfb_crtc *crtc, ushort index,
                                                                ushort red, ushort green, ushort blue)
 {
index a4d66bf346dc505cf4ef5bd8c0a86fe25828b3b3..cc8c76d0c1d2942520a257f563d29765fcb44c5d 100644 (file)
@@ -91,8 +91,6 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc*, struct fb_var_screeninfo*, struct
 int hw_sm750_setColReg(struct lynxfb_crtc*, ushort, ushort, ushort, ushort);
 int hw_sm750_setBLANK(struct lynxfb_output*, int);
 int hw_sm750le_setBLANK(struct lynxfb_output*, int);
-void hw_sm750_crtc_clear(struct lynxfb_crtc *);
-void hw_sm750_output_clear(struct lynxfb_output *);
 int hw_sm750_pan_display(struct lynxfb_crtc *crtc,
                         const struct fb_var_screeninfo *var,
                         const struct fb_info *info);