The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Ben Dooks <ben@fluff.org>
To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: SM501: only compile suspend/resume if CONFIG_PM
Date: Thu, 21 Jun 2007 19:11:18 +0100	[thread overview]
Message-ID: <20070621181118.GA6725@fluff.org.uk> (raw)

The suspend and resume support only needs to be built if
CONFIG_PM is defined.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>

Index: linux-2.6.21-quilt9/drivers/mfd/sm501.c
===================================================================
--- linux-2.6.21-quilt9.orig/drivers/mfd/sm501.c
+++ linux-2.6.21-quilt9/drivers/mfd/sm501.c
@@ -1000,6 +1000,7 @@ static int sm501_plat_probe(struct platf
 
 }
 
+#ifdef CONFIG_PM
 /* power management support */
 
 static int sm501_plat_suspend(struct platform_device *pdev, pm_message_t state)
@@ -1045,7 +1046,10 @@ static int sm501_plat_resume(struct plat
 
 	return 0;
 }
-
+#else
+#define sm501_plat_suspend NULL
+#define sm501_plat_resume NULL
+#endif
 
 /* Initialisation data for PCI devices */
 

                 reply	other threads:[~2007-06-21 18:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20070621181118.GA6725@fluff.org.uk \
    --to=ben@fluff.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.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