Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] CONFIG_PM=n slim: drivers/ide/pci/sc1200.c

Remove some code which is unneeded if CONFIG_PM=n.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Alexey Dobriyan and committed by
Linus Torvalds
b86cc29d 4fa902a9

+4
+4
drivers/ide/pci/sc1200.c
··· 323 323 } 324 324 } 325 325 326 + #ifdef CONFIG_PM 326 327 static ide_hwif_t *lookup_pci_dev (ide_hwif_t *prev, struct pci_dev *dev) 327 328 { 328 329 int h; ··· 452 451 } 453 452 return 0; 454 453 } 454 + #endif 455 455 456 456 /* 457 457 * This gets invoked by the IDE driver once for each channel, ··· 501 499 .name = "SC1200_IDE", 502 500 .id_table = sc1200_pci_tbl, 503 501 .probe = sc1200_init_one, 502 + #ifdef CONFIG_PM 504 503 .suspend = sc1200_suspend, 505 504 .resume = sc1200_resume, 505 + #endif 506 506 }; 507 507 508 508 static int sc1200_ide_init(void)