[PATCH v1 1/2] driver core: faux: Set power.no_pm for faux devices

Rafael J. Wysocki
2025-08-28T10:59:50Z

From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Since faux devices are not supposed to be involved in any kind of
power management, set the no_pm flag for all of them.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
drivers/base/faux.c | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/base/faux.c
+++ b/drivers/base/faux.c
@@ -155,6 +155,7 @@
dev->parent = &faux_bus_root;
dev->bus = &faux_bus_type;
dev_set_name(dev, "%s", name);
+ device_set_pm_not_required(dev);

ret = device_add(dev);
if (ret) {