From: Martin Langer <martin-langer@gmx.de>
To: alsa-devel@alsa-project.org
Subject: [PATCH] ac97_bus power management
Date: Fri, 2 Feb 2007 22:44:37 +0100 [thread overview]
Message-ID: <20070202214436.GA3607@tuba> (raw)
Any reason why ac97_bus.c comes without CONFIG_PM?
This patch adds CONFIG_PM to the ac97_bus driver.
Signed-off-by: Martin Langer <martin-langer@gmx.de>
--- ../alsa-driver-1.0.14rc2-original/alsa-kernel/ac97_bus.c 2007-01-15 14:25:18.000000000 +0100
+++ alsa-kernel/ac97_bus.c 2007-02-02 21:39:47.000000000 +0100
@@ -26,6 +26,7 @@
return 1;
}
+#ifdef CONFIG_PM
static int ac97_bus_suspend(struct device *dev, pm_message_t state)
{
int ret = 0;
@@ -45,12 +46,15 @@
return ret;
}
+#endif /* CONFIG_PM */
struct bus_type ac97_bus_type = {
.name = "ac97",
.match = ac97_bus_match,
+#ifdef CONFIG_PM
.suspend = ac97_bus_suspend,
.resume = ac97_bus_resume,
+#endif /* CONFIG_PM */
};
static int __init ac97_bus_init(void)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
next reply other threads:[~2007-02-02 21:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-02 21:44 Martin Langer [this message]
2007-02-05 12:04 ` [PATCH] ac97_bus power management Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070202214436.GA3607@tuba \
--to=martin-langer@gmx.de \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.