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>
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
.name = "sdw-mockup",
},
.probe = sdw_mockup_sdw_probe,
- .remove = sdw_mockup_sdw_remove,
.ops = &sdw_mockup_slave_ops,
.id_table = sdw_mockup_id,
};