mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] power: supply: olpc_battery: remove unnecessary CONFIG_PM_SLEEP
@ 2020-10-29  7:41 Coiby Xu
  2020-10-29 10:04 ` Hans de Goede
  0 siblings, 1 reply; 6+ messages in thread
From: Coiby Xu @ 2020-10-29  7:41 UTC (permalink / raw)
  To: Ingo Molnar, Darren Hart, Borislav Petkov, Thomas Gleixner
  Cc: Andy Shevchenko, maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT),
	H. Peter Anvin, open list:X86 PLATFORM DRIVERS - ARCH,
	open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)

SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG.

Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
---
 arch/x86/platform/olpc/olpc-xo15-sci.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c
index 85f4638764d6..716eefd735a4 100644
--- a/arch/x86/platform/olpc/olpc-xo15-sci.c
+++ b/arch/x86/platform/olpc/olpc-xo15-sci.c
@@ -192,7 +192,6 @@ static int xo15_sci_remove(struct acpi_device *device)
 	return 0;
 }
 
-#ifdef CONFIG_PM_SLEEP
 static int xo15_sci_resume(struct device *dev)
 {
 	/* Enable all EC events */
@@ -204,7 +203,6 @@ static int xo15_sci_resume(struct device *dev)
 
 	return 0;
 }
-#endif
 
 static SIMPLE_DEV_PM_OPS(xo15_sci_pm, NULL, xo15_sci_resume);
 
-- 
2.28.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-29 16:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29  7:41 [PATCH] power: supply: olpc_battery: remove unnecessary CONFIG_PM_SLEEP Coiby Xu
2020-10-29 10:04 ` Hans de Goede
2020-10-29 10:59   ` Coiby Xu
2020-10-29 11:09     ` Hans de Goede
2020-10-29 14:16       ` Coiby Xu
2020-10-29 16:03         ` Hans de Goede

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®