From: Kristian Mueller <Kristian-M@Kristian-M.de>
To: linuxppc-dev@ozlabs.org
Subject: [PATCH] via-mpu: compile without Power Management support
Date: Thu, 15 Dec 2005 11:45:22 +0800 [thread overview]
Message-ID: <1134618322.4972.10.camel@pismo> (raw)
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
Don't check for sleep_in_progress if there is no
Power Management support.
[-- Attachment #2: pmu-without-pm.patch --]
[-- Type: text/x-patch, Size: 817 bytes --]
--- linux/drivers/macintosh/via-pmu.c.orig 2005-12-15 11:28:28.000000000 +0800
+++ linux/drivers/macintosh/via-pmu.c 2005-12-15 10:04:53.000000000 +0800
@@ -2911,8 +2911,10 @@ pmu_ioctl(struct inode * inode, struct f
* the fbdev
*/
case PMU_IOC_GET_BACKLIGHT:
+#if defined(CONFIG_PM) && defined(CONFIG_PPC32)
if (sleep_in_progress)
return -EBUSY;
+#endif /* CONFIG_PM && CONFIG_PPC32 */
error = get_backlight_level();
if (error < 0)
return error;
@@ -2920,8 +2922,10 @@ pmu_ioctl(struct inode * inode, struct f
case PMU_IOC_SET_BACKLIGHT:
{
__u32 value;
+#if defined(CONFIG_PM) && defined(CONFIG_PPC32)
if (sleep_in_progress)
return -EBUSY;
+#endif /* CONFIG_PM && CONFIG_PPC32 */
error = get_user(value, argp);
if (!error)
error = set_backlight_level(value);
next reply other threads:[~2005-12-15 3:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-15 3:45 Kristian Mueller [this message]
2005-12-15 4:14 ` [PATCH] via-mpu: compile without Power Management support Olof Johansson
2005-12-15 4:31 ` Kristian Mueller
2005-12-15 5:30 ` Paul Mackerras
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=1134618322.4972.10.camel@pismo \
--to=kristian-m@kristian-m.de \
--cc=linuxppc-dev@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox