staging: sm750fb: remove unused methods from lynx_share
authorMike Rapoport <mike.rapoport@gmail.com>
Fri, 23 Oct 2015 14:55:09 +0000 (17:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:04:13 +0000 (19:04 -0700)
The suspend and resume methods in lynx_share are not implemented and
never set. Remove them.

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 805a403eaba4d67e903ed51f6222cc19c5b0287b..7eca4cb3c6568d4ae68aa08a6c79488770d1e9ad 100644 (file)
@@ -434,10 +434,6 @@ static int lynxfb_suspend(struct pci_dev *pdev, pm_message_t mesg)
                        return ret;
                }
 
-               /* set chip to sleep mode */
-               if (share->suspend)
-                       (*share->suspend)(share);
-
                pci_disable_device(pdev);
                ret = pci_set_power_state(pdev, pci_choose_state(pdev, mesg));
                if (ret) {
@@ -482,8 +478,6 @@ static int lynxfb_resume(struct pci_dev *pdev)
                }
                pci_set_master(pdev);
        }
-       if (share->resume)
-               (*share->resume)(share);
 
        hw_sm750_inithw(share, pdev);
 
index e74a3e15d251d1c044720d0e26b618cbf4b014e5..c18806173410d9eda58ce40079003bffdfd0fd24 100644 (file)
@@ -62,9 +62,6 @@ struct lynx_share {
        unsigned char __iomem *pvMem;
        /* locks*/
        spinlock_t slock;
-       /* function pointers */
-       void (*suspend)(struct lynx_share *);
-       void (*resume)(struct lynx_share *);
 };
 
 struct lynx_cursor {