Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Rafael J. Wysocki and committed by
Greg Kroah-Hartman
a1fa010b f72e77c3

-6
-6
drivers/base/auxiliary.c
··· 207 207 (int)(p - name), name); 208 208 } 209 209 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 - 215 210 static int auxiliary_bus_probe(struct device *dev) 216 211 { 217 212 const struct auxiliary_driver *auxdrv = to_auxiliary_drv(dev->driver); ··· 253 258 .shutdown = auxiliary_bus_shutdown, 254 259 .match = auxiliary_match, 255 260 .uevent = auxiliary_uevent, 256 - .pm = &auxiliary_dev_pm_ops, 257 261 }; 258 262 259 263 /**