aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorMark Allyn <mark.a.allyn@intel.com>2010-02-05 10:53:34 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-03 16:42:57 -0800
commit3913add413ab95b1e33738b44e9a2118afb11346 (patch)
tree022b8645c511188a1df4446a7ef7d92070047883 /drivers/staging
parent433e63c63eee9fd8ac3735ce5b41797f30d5ce58 (diff)
Staging: rar_register: add suspend and resume functions
Add suspend and resume functions (which are currently stubs returning -ENOSYS) Signed-off-by: Mark Allyn <mark.a.allyn@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rar_register/rar_register.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/staging/rar_register/rar_register.c b/drivers/staging/rar_register/rar_register.c
index c9dcc9916b7..bfc0e31f1a6 100644
--- a/drivers/staging/rar_register/rar_register.c
+++ b/drivers/staging/rar_register/rar_register.c
@@ -506,6 +506,17 @@ int register_rar(int (*callback)(void *yourparameter), void *yourparameter)
}
EXPORT_SYMBOL(register_rar);
+/* Suspend - returns -ENOSYS */
+static int rar_suspend(struct pci_dev *dev, pm_message_t state)
+{
+ return -ENOSYS;
+}
+
+static int rar_resume(struct pci_dev *dev)
+{
+ return -ENOSYS;
+}
+
/*
* This function registers the driver with the device subsystem (
* either PCI, USB, etc).
@@ -582,7 +593,9 @@ const struct pci_device_id *my_id_table = rar_pci_id_tbl;
static struct pci_driver rar_pci_driver = {
.name = "rar_register_driver",
.id_table = rar_pci_id_tbl,
- .probe = rar_probe
+ .probe = rar_probe,
+ .suspend = rar_suspend,
+ .resume = rar_resume
};
static int __init rar_init_handler(void)