Commit 392a002a authored by Javier M. Mellid's avatar Javier M. Mellid Committed by Greg Kroah-Hartman

staging: sm7xx: fixed defines

Deleted redundant __KERNEL__ define

PM methods (suspend and resume) enabled under CONFIG_PM only
Signed-off-by: default avatarJavier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9c94b7a6
...@@ -26,10 +26,6 @@ ...@@ -26,10 +26,6 @@
* Boyod.yang <boyod.yang@siliconmotion.com.cn> * Boyod.yang <boyod.yang@siliconmotion.com.cn>
*/ */
#ifndef __KERNEL__
#define __KERNEL__
#endif
#include <linux/io.h> #include <linux/io.h>
#include <linux/fb.h> #include <linux/fb.h>
#include <linux/pci.h> #include <linux/pci.h>
...@@ -1019,6 +1015,7 @@ static void __devexit smtcfb_pci_remove(struct pci_dev *pdev) ...@@ -1019,6 +1015,7 @@ static void __devexit smtcfb_pci_remove(struct pci_dev *pdev)
smtc_free_fb_info(sfb); smtc_free_fb_info(sfb);
} }
#ifdef CONFIG_PM
/* Jason (08/14/2009) /* Jason (08/14/2009)
* suspend function, called when the suspend event is triggered * suspend function, called when the suspend event is triggered
*/ */
...@@ -1111,6 +1108,7 @@ static int __maybe_unused smtcfb_resume(struct pci_dev *pdev) ...@@ -1111,6 +1108,7 @@ static int __maybe_unused smtcfb_resume(struct pci_dev *pdev)
return 0; return 0;
} }
#endif
/* Jason (08/13/2009) /* Jason (08/13/2009)
* pci_driver struct used to wrap the original driver * pci_driver struct used to wrap the original driver
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment