diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2024-07-12 16:08:00 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-07-31 08:57:45 +0200 |
commit | 6dfbafd8a1d51a52a623d912a2219e9982020854 (patch) | |
tree | f6067c357bc600a803323a122394fd1296a9c528 /drivers/soundwire | |
parent | soundwire: bus: suppress probe deferral errors (diff) | |
download | linux-6dfbafd8a1d51a52a623d912a2219e9982020854.tar.xz linux-6dfbafd8a1d51a52a623d912a2219e9982020854.zip |
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.c | 9 |
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; } |