mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, Feng Tang <feng.tang@intel.com>
Subject: [PATCH -mmotm] spi: fix dw_spi_pci build when CONFIG_PM=n
Date: Wed, 14 Oct 2009 14:59:11 -0700	[thread overview]
Message-ID: <20091014145911.877130a7.randy.dunlap@oracle.com> (raw)
In-Reply-To: <200910140436.n9E4aF9G001644@imap1.linux-foundation.org>

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix names of the suspend and resume macros so that build succeeds
when CONFIG_PM=n:

drivers/spi/dw_spi_pci.c:150: error: 'spi_suspend' undeclared here (not in a function)
drivers/spi/dw_spi_pci.c:151: error: 'spi_resume' undeclared here (not in a function)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Feng Tang <feng.tang@intel.com>
---
 drivers/spi/dw_spi_pci.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- mmotm-2009-1013-2113.orig/drivers/spi/dw_spi_pci.c
+++ mmotm-2009-1013-2113/drivers/spi/dw_spi_pci.c
@@ -132,8 +132,8 @@ static int spi_resume(struct pci_dev *pd
 	return dw_spi_resume_host(&dwpci->dws);
 }
 #else
-#define mrst_spi_suspend	NULL
-#define mrst_spi_resume		NULL
+#define spi_suspend	NULL
+#define spi_resume	NULL
 #endif
 
 static const struct pci_device_id pci_ids[] __devinitdata = {

      parent reply	other threads:[~2009-10-14 22:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-14  4:13 mmotm 2009-10-13-21-13 uploaded akpm
2009-10-14 21:59 ` [PATCH -mmotm] net: ks8851_mll uses mii interfaces Randy Dunlap
2009-10-14 22:11   ` David Miller
2009-10-14 21:59 ` Randy Dunlap [this message]

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=20091014145911.877130a7.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=feng.tang@intel.com \
    --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

all inboxes | Powered by JetHome®