* [PATCH] ahci.c: fix CONFIG_PM=n compilation
@ 2007-07-17 19:48 Alexey Dobriyan
2007-07-20 11:47 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2007-07-17 19:48 UTC (permalink / raw)
To: jeff; +Cc: linux-ide
Commit df69c9c5438b4e396a64d42608b2a6c48a3e7475 moved only prototype of
out of CONFIG_PM. Move function out as well. Box seems to boot fine.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/ata/ahci.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1519,6 +1519,14 @@ static void ahci_post_internal_cmd(struct ata_queued_cmd *qc)
}
}
+static int ahci_port_resume(struct ata_port *ap)
+{
+ ahci_power_up(ap);
+ ahci_start_port(ap);
+
+ return 0;
+}
+
#ifdef CONFIG_PM
static int ahci_port_suspend(struct ata_port *ap, pm_message_t mesg)
{
@@ -1536,14 +1544,6 @@ static int ahci_port_suspend(struct ata_port *ap, pm_message_t mesg)
return rc;
}
-static int ahci_port_resume(struct ata_port *ap)
-{
- ahci_power_up(ap);
- ahci_start_port(ap);
-
- return 0;
-}
-
static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg)
{
struct ata_host *host = dev_get_drvdata(&pdev->dev);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ahci.c: fix CONFIG_PM=n compilation
2007-07-17 19:48 [PATCH] ahci.c: fix CONFIG_PM=n compilation Alexey Dobriyan
@ 2007-07-20 11:47 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-07-20 11:47 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: linux-ide
Alexey Dobriyan wrote:
> Commit df69c9c5438b4e396a64d42608b2a6c48a3e7475 moved only prototype of
> out of CONFIG_PM. Move function out as well. Box seems to boot fine.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
>
> drivers/ata/ahci.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-20 11:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 19:48 [PATCH] ahci.c: fix CONFIG_PM=n compilation Alexey Dobriyan
2007-07-20 11:47 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).