Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e711c04 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

PM: Remove sysdev suspend, resume and shutdown operations



Since suspend, resume and shutdown operations in struct sysdev_class
and struct sysdev_driver are not used any more, remove them.  Also
drop sysdev_suspend(), sysdev_resume() and sysdev_shutdown() used
for executing those operations and modify all of their users
accordingly.  This reduces kernel code size quite a bit and reduces
its complexity.

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f5a592f7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ config SUPERH
	select RTC_LIB
	select GENERIC_ATOMIC64
	select GENERIC_IRQ_SHOW
	select ARCH_NO_SYSDEV_OPS
	help
	  The SuperH is a RISC processor targeted for use in embedded systems
	  and consumer electronics; it was also used in the Sega Dreamcast
+0 −1
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ config X86
	select GENERIC_IRQ_SHOW
	select IRQ_FORCED_THREADING
	select USE_GENERIC_SMP_HELPERS if SMP
	select ARCH_NO_SYSDEV_OPS

config INSTRUCTION_DECODER
	def_bool (KPROBES || PERF_EVENTS)
+0 −4
Original line number Diff line number Diff line
@@ -1238,7 +1238,6 @@ static int suspend(int vetoable)
	dpm_suspend_noirq(PMSG_SUSPEND);

	local_irq_disable();
	sysdev_suspend(PMSG_SUSPEND);
	syscore_suspend();

	local_irq_enable();
@@ -1258,7 +1257,6 @@ static int suspend(int vetoable)
	err = (err == APM_SUCCESS) ? 0 : -EIO;

	syscore_resume();
	sysdev_resume();
	local_irq_enable();

	dpm_resume_noirq(PMSG_RESUME);
@@ -1282,7 +1280,6 @@ static void standby(void)
	dpm_suspend_noirq(PMSG_SUSPEND);

	local_irq_disable();
	sysdev_suspend(PMSG_SUSPEND);
	syscore_suspend();
	local_irq_enable();

@@ -1292,7 +1289,6 @@ static void standby(void)

	local_irq_disable();
	syscore_resume();
	sysdev_resume();
	local_irq_enable();

	dpm_resume_noirq(PMSG_RESUME);
+0 −7
Original line number Diff line number Diff line
@@ -168,11 +168,4 @@ config SYS_HYPERVISOR
	bool
	default n

config ARCH_NO_SYSDEV_OPS
	bool
	---help---
	  To be selected by architectures that don't use sysdev class or
	  sysdev driver power management (suspend/resume) and shutdown
	  operations.

endmenu
+0 −2
Original line number Diff line number Diff line
@@ -111,8 +111,6 @@ static inline int driver_match_device(struct device_driver *drv,
	return drv->bus->match ? drv->bus->match(dev, drv) : 1;
}

extern void sysdev_shutdown(void);

extern char *make_class_name(const char *name, struct kobject *kobj);

extern int devres_release_all(struct device *dev);
Loading