Skip to content

Commit 969bf68

Browse files
claudiubezneavinodkoul
authored andcommitted
soundwire: bus: Drop dev_pm_domain_detach() call
Starting with commit f995080 ("PM: domains: Detach on device_unbind_cleanup()"), there is no longer a need to call dev_pm_domain_detach() in the bus remove function. The device_unbind_cleanup() function now handles this to avoid invoking devres cleanup handlers while the PM domain is powered off, which could otherwise lead to failures as described in the above-mentioned commit. Drop the explicit dev_pm_domain_detach() call and rely instead on the flags passed to dev_pm_domain_attach() to power off the domain. Signed-off-by: Claudiu Beznea <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 8b63fee commit 969bf68

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/soundwire/bus_type.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ static int sdw_drv_probe(struct device *dev)
114114

115115
ret = drv->probe(slave, id);
116116
if (ret) {
117-
dev_pm_domain_detach(dev, false);
118117
ida_free(&slave->bus->slave_ida, slave->index);
119118
return ret;
120119
}
@@ -180,8 +179,6 @@ static int sdw_drv_remove(struct device *dev)
180179
if (drv->remove)
181180
ret = drv->remove(slave);
182181

183-
dev_pm_domain_detach(dev, false);
184-
185182
ida_free(&slave->bus->slave_ida, slave->index);
186183

187184
return ret;

0 commit comments

Comments
 (0)