android_kernel_motorola_sm6375/drivers/soundwire
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pierre-Louis Bossart 3771ee6c46 soundwire: bus_type: fix remove and shutdown support
[ Upstream commit df6407782964dc7e35ad84230abb38f46314b245 ]

The bus sdw_drv_remove() and sdw_drv_shutdown() helpers are used
conditionally, if the driver provides these routines.

These helpers already test if the driver provides a .remove or
.shutdown callback, so there's no harm in invoking the
sdw_drv_remove() and sdw_drv_shutdown() unconditionally.

In addition, the current code is imbalanced with
dev_pm_domain_attach() called from sdw_drv_probe(), but
dev_pm_domain_detach() called from sdw_drv_remove() only if the driver
provides a .remove callback.

Fixes: 9251345dca ("soundwire: Add SoundWire bus type")
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Rander Wang <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2022-08-25 11:17:54 +02:00
..
bus.c
bus.h
bus_type.c soundwire: bus_type: fix remove and shutdown support 2022-08-25 11:17:54 +02:00
cadence_master.c
cadence_master.h
debugfs.c
intel.c
intel.h
intel_init.c
Kconfig
Makefile
mipi_disco.c
slave.c
stream.c