Skip to content

Commit a1fa010

Browse files
rafaeljwgregkh
authored andcommitted
driver core: auxiliary bus: Drop auxiliary_dev_pm_ops
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>
1 parent f72e77c commit a1fa010

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/base/auxiliary.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,6 @@ static int auxiliary_uevent(const struct device *dev, struct kobj_uevent_env *en
207207
(int)(p - name), name);
208208
}
209209

210-
static const struct dev_pm_ops auxiliary_dev_pm_ops = {
211-
SET_RUNTIME_PM_OPS(pm_generic_runtime_suspend, pm_generic_runtime_resume, NULL)
212-
SET_SYSTEM_SLEEP_PM_OPS(pm_generic_suspend, pm_generic_resume)
213-
};
214-
215210
static int auxiliary_bus_probe(struct device *dev)
216211
{
217212
const struct auxiliary_driver *auxdrv = to_auxiliary_drv(dev->driver);
@@ -258,7 +253,6 @@ static const struct bus_type auxiliary_bus_type = {
258253
.shutdown = auxiliary_bus_shutdown,
259254
.match = auxiliary_match,
260255
.uevent = auxiliary_uevent,
261-
.pm = &auxiliary_dev_pm_ops,
262256
};
263257

264258
/**

0 commit comments

Comments
 (0)