aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-09-29 05:00:16 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 12:18:13 -0400
commit7dd7d6912b8a978878847fdcd3feef0d1b6471de (patch)
treec989b47ee136e56ef8c5e1e9628d0e1aa6d127b6 /drivers/parport
parentaf410fc13d95f079910fc3dca7496590c3275967 (diff)
[PATCH] CONFIG_PM=n slim: drivers/parport/parport_serial.c
Remove some code which is unneeded if CONFIG_PM=n. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/parport_serial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c
index 98b83a85c60e..78c0a269a2ba 100644
--- a/drivers/parport/parport_serial.c
+++ b/drivers/parport/parport_serial.c
@@ -374,6 +374,7 @@ static void __devexit parport_serial_pci_remove (struct pci_dev *dev)
374 return; 374 return;
375} 375}
376 376
377#ifdef CONFIG_PM
377static int parport_serial_pci_suspend(struct pci_dev *dev, pm_message_t state) 378static int parport_serial_pci_suspend(struct pci_dev *dev, pm_message_t state)
378{ 379{
379 struct parport_serial_private *priv = pci_get_drvdata(dev); 380 struct parport_serial_private *priv = pci_get_drvdata(dev);
@@ -407,14 +408,17 @@ static int parport_serial_pci_resume(struct pci_dev *dev)
407 408
408 return 0; 409 return 0;
409} 410}
411#endif
410 412
411static struct pci_driver parport_serial_pci_driver = { 413static struct pci_driver parport_serial_pci_driver = {
412 .name = "parport_serial", 414 .name = "parport_serial",
413 .id_table = parport_serial_pci_tbl, 415 .id_table = parport_serial_pci_tbl,
414 .probe = parport_serial_pci_probe, 416 .probe = parport_serial_pci_probe,
415 .remove = __devexit_p(parport_serial_pci_remove), 417 .remove = __devexit_p(parport_serial_pci_remove),
418#ifdef CONFIG_PM
416 .suspend = parport_serial_pci_suspend, 419 .suspend = parport_serial_pci_suspend,
417 .resume = parport_serial_pci_resume, 420 .resume = parport_serial_pci_resume,
421#endif
418}; 422};
419 423
420 424