]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
driver core: auxiliary bus: Drop auxiliary_dev_pm_ops
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 27 Mar 2026 09:51:59 +0000 (10:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Mar 2026 10:58:49 +0000 (11:58 +0100)
Since the PM core automatically falls back to using the driver PM
callbacks directly if no bus type callbacks are present, it is not
necessary to define a struct dev_pm_ops for a bus type that will only
invoke driver PM callbacks from its PM callbacks.

Accordingly, auxiliary_dev_pm_ops is redundant, so drop it.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/4738700.LvFx2qVVIh@rafael.j.wysocki
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/auxiliary.c

index 9fd3820d1f8a2865d63f6c046b67de15d460cf3b..16b8bdab30c838835241fa42e29ae1a1fc62f275 100644 (file)
@@ -207,11 +207,6 @@ static int auxiliary_uevent(const struct device *dev, struct kobj_uevent_env *en
                              (int)(p - name), name);
 }
 
-static const struct dev_pm_ops auxiliary_dev_pm_ops = {
-       SET_RUNTIME_PM_OPS(pm_generic_runtime_suspend, pm_generic_runtime_resume, NULL)
-       SET_SYSTEM_SLEEP_PM_OPS(pm_generic_suspend, pm_generic_resume)
-};
-
 static int auxiliary_bus_probe(struct device *dev)
 {
        const struct auxiliary_driver *auxdrv = to_auxiliary_drv(dev->driver);
@@ -258,7 +253,6 @@ static const struct bus_type auxiliary_bus_type = {
        .shutdown = auxiliary_bus_shutdown,
        .match = auxiliary_match,
        .uevent = auxiliary_uevent,
-       .pm = &auxiliary_dev_pm_ops,
 };
 
 /**