soundwire: bus: drop unused driver name field
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 12 Jul 2024 14:08:00 +0000 (16:08 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 31 Jul 2024 06:57:45 +0000 (12:27 +0530)
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>
drivers/soundwire/bus_type.c
include/linux/soundwire/sdw.h

index 6b1c8c8171026f4ce933c16bfcc827cd9e49b669..fe08f7644f0e08d8ac60e1d99f474e2c8e6fd6de 100644 (file)
@@ -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;
        }
 
index 94fc1b57c57ba36ff0911e9477568a963cd27712..5e0dd47a041240fe7ec64c15c4f180c878fc231b 100644 (file)
@@ -704,8 +704,6 @@ struct sdw_master_device {
        container_of(d, struct sdw_master_device, dev)
 
 struct sdw_driver {
-       const char *name;
-
        int (*probe)(struct sdw_slave *sdw,
                        const struct sdw_device_id *id);
        int (*remove)(struct sdw_slave *sdw);