mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
d9a2b5eaec
commit
6dfbafd8a1
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user