[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>
This commit is contained in:
parent
4fa902a918
commit
b86cc29dc4
1 changed files with 4 additions and 0 deletions
|
@ -323,6 +323,7 @@ static void sc1200_tuneproc (ide_drive_t *drive, byte pio) /* mode=255 means "au
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
static ide_hwif_t *lookup_pci_dev (ide_hwif_t *prev, struct pci_dev *dev)
|
static ide_hwif_t *lookup_pci_dev (ide_hwif_t *prev, struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
int h;
|
int h;
|
||||||
|
@ -451,6 +452,7 @@ static int sc1200_resume (struct pci_dev *dev)
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This gets invoked by the IDE driver once for each channel,
|
* This gets invoked by the IDE driver once for each channel,
|
||||||
|
@ -499,8 +501,10 @@ static struct pci_driver driver = {
|
||||||
.name = "SC1200_IDE",
|
.name = "SC1200_IDE",
|
||||||
.id_table = sc1200_pci_tbl,
|
.id_table = sc1200_pci_tbl,
|
||||||
.probe = sc1200_init_one,
|
.probe = sc1200_init_one,
|
||||||
|
#ifdef CONFIG_PM
|
||||||
.suspend = sc1200_suspend,
|
.suspend = sc1200_suspend,
|
||||||
.resume = sc1200_resume,
|
.resume = sc1200_resume,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static int sc1200_ide_init(void)
|
static int sc1200_ide_init(void)
|
||||||
|
|
Loading…
Reference in a new issue