mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
ASoC: sdw-mockup: Drop dummy remove function
A remove callback is optional and having no such function has the same semantic as one returning zero (and other return values are effectively ignored). This allows to remove the remove function without replacement. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/20251212073555.1065284-2-u.kleine-koenig@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
ae9ccaed3f
commit
81acbdc51b
|
|
@ -237,11 +237,6 @@ static int sdw_mockup_sdw_probe(struct sdw_slave *slave,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int sdw_mockup_sdw_remove(struct sdw_slave *slave)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Intel reserved parts ID with the following mapping expected:
|
||||
* 0xAAAA: generic full-duplex codec
|
||||
|
|
@ -264,7 +259,6 @@ static struct sdw_driver sdw_mockup_sdw_driver = {
|
|||
.name = "sdw-mockup",
|
||||
},
|
||||
.probe = sdw_mockup_sdw_probe,
|
||||
.remove = sdw_mockup_sdw_remove,
|
||||
.ops = &sdw_mockup_slave_ops,
|
||||
.id_table = sdw_mockup_id,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user