linux/drivers/soundwire
Pierre-Louis Bossart fbd7b564f9 soundwire: bus_type: fix remove and shutdown support
[ Upstream commit df64077829 ]

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 <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220610015105.25987-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-21 15:15:56 +02:00
..
bus_type.c soundwire: bus_type: fix remove and shutdown support 2022-08-21 15:15:56 +02:00
bus.c soundwire: bus: Fix device found flag correctly 2021-05-14 09:50:13 +02:00
bus.h
cadence_master.c
cadence_master.h
debugfs.c soundwire: debugfs: use controller id and link_id for debugfs 2021-11-18 14:04:16 +01:00
generic_bandwidth_allocation.c
intel_init.c
intel.c soundwire: intel: fix wrong register name in intel_shim_wake 2022-04-08 14:40:24 +02:00
intel.h
Kconfig
Makefile
master.c
mipi_disco.c
qcom.c
slave.c
stream.c soundwire: stream: Fix test for DP prepare complete 2021-07-14 16:56:47 +02:00
sysfs_local.h
sysfs_slave_dpn.c
sysfs_slave.c