Skip to contentSkip to conversation

spi/dln2: Fix for PM_RUNTIME removal

PATCH In review Mark Brown 2 participants 3 messages Dec 23, 2014 – Dec 29, 2014 2 messages not in the archive SPI

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 spi/dln2: Fix for PM_RUNTIME removal

---
 drivers/spi/spi-dln2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-dln2.c +1 -1
index 7b35454..cede063 100644
@@ -850,7 +850,7 @@ static int dln2_spi_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int dln2_spi_runtime_suspend(struct device *dev)
 {
 	struct spi_master *master = dev_get_drvdata(dev);
Signature · 6 lines
2.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1419294557-10632-1-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org

#2 lore raw

Hi Mark,

Quoted 10 lines · Mark Brown
---
 drivers/spi/spi-dln2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-dln2.c +0 -0
index 7b35454..cede063 100644

drivers/spi/spi-dln2.c static int dln2_spi_resume(struct device *dev) · line 856

Quoted 8 lines
drivers/spi/spi-dln2.c +1 -1
@@ -850,7 +850,7 @@ static int dln2_spi_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int dln2_spi_runtime_suspend(struct device *dev)
 {
        struct spi_master *master = dev_get_drvdata(dev);

You forgot to update the comment for the corresponding #endif a few lines below:

        #endif /* CONFIG_PM_RUNTIME */

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAMuHMdUeD4dFAxCgK8JO9MS_BCruCJk4AZ29Qr77XpfcgVpnRg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

author
#4 lore raw
Quoted 11 lines · Geert Uytterhoeven
Quoted 4 lines · Mark Brown

+#ifdef CONFIG_PM
static int dln2_spi_runtime_suspend(struct device *dev)

 {
        struct spi_master *master = dev_get_drvdata(dev);

You forgot to update the comment for the corresponding #endif a few lines below:

        #endif /* CONFIG_PM_RUNTIME */

*sigh* which is one of the many reasons to get annoyed about those comments; if you care about this please feel free to send a patch.