Skip to content

Commit ba61d68

Browse files
rafaeljwgregkh
authored andcommitted
driver core: faux: Set power.no_pm for faux devices
commit 1ad926459970444af1140f9b393f416536e1a828 upstream. 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 <[email protected]> Cc: stable <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 226082e commit ba61d68

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/base/faux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ struct faux_device *faux_device_create_with_groups(const char *name,
155155
dev->parent = &faux_bus_root;
156156
dev->bus = &faux_bus_type;
157157
dev_set_name(dev, "%s", name);
158+
device_set_pm_not_required(dev);
158159

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

0 commit comments

Comments
 (0)