summaryrefslogtreecommitdiff
path: root/drivers/soundwire
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2024-07-12 17:08:00 +0300
committerVinod Koul <vkoul@kernel.org>2024-07-31 09:57:45 +0300
commit6dfbafd8a1d51a52a623d912a2219e9982020854 (patch)
treef6067c357bc600a803323a122394fd1296a9c528 /drivers/soundwire
parentd9a2b5eaec9424e6db0142e07c1b3de17fb81b88 (diff)
downloadlinux-6dfbafd8a1d51a52a623d912a2219e9982020854.tar.xz
soundwire: bus: drop unused driver name field
The soundwire driver name field is not currently used by any driver (and even appears to never have been used) so drop it. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20240712140801.24267-3-johan+linaro@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r--drivers/soundwire/bus_type.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/soundwire/bus_type.c b/drivers/soundwire/bus_type.c
index 6b1c8c817102..fe08f7644f0e 100644
--- a/drivers/soundwire/bus_type.c
+++ b/drivers/soundwire/bus_type.c
@@ -198,16 +198,11 @@ static void sdw_drv_shutdown(struct device *dev)
*/
int __sdw_register_driver(struct sdw_driver *drv, struct module *owner)
{
- const char *name;
-
drv->driver.bus = &sdw_bus_type;
if (!drv->probe) {
- name = drv->name;
- if (!name)
- name = drv->driver.name;
-
- pr_err("driver %s didn't provide SDW probe routine\n", name);
+ pr_err("driver %s didn't provide SDW probe routine\n",
+ drv->driver.name);
return -EINVAL;
}