diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2015-10-23 17:55:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-24 19:04:13 -0700 |
commit | 9b2941e27e364c2c3ef7731dab9c7c8564acb690 (patch) | |
tree | 0c65f8fde60e6f59ff2c209b72f53b1512836d53 /drivers/staging/sm750fb | |
parent | 4edd3f3af2f4b9296bccbe8dd7de18b5de683801 (diff) |
staging: sm750fb: remove unused methods from lynx_share
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>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r-- | drivers/staging/sm750fb/sm750.c | 6 | ||||
-rw-r--r-- | drivers/staging/sm750fb/sm750.h | 3 |
2 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 805a403eaba4..7eca4cb3c656 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -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); diff --git a/drivers/staging/sm750fb/sm750.h b/drivers/staging/sm750fb/sm750.h index e74a3e15d251..c18806173410 100644 --- a/drivers/staging/sm750fb/sm750.h +++ b/drivers/staging/sm750fb/sm750.h @@ -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 { |