diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-02-19 10:46:29 +0300 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-03-09 00:01:09 +0300 |
commit | 2c12932b8e65227030cd079d18ff6ad42d262491 (patch) | |
tree | a2c55024cf882927b11fa58aed05bbb59e96a951 /drivers/siox/siox.h | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) | |
download | linux-2c12932b8e65227030cd079d18ff6ad42d262491.tar.xz |
siox: Don't pass the reference on a master in siox_master_register()
While it's technically fine to pass the ownership of the reference on
a struct siox_master from the caller of siox_master_register() to the
framework this is hard to use. Instead let the framework take its own
reference (that is freed in siox_master_unregister()) and drop the bus
driver's reference in its remove callback.
Acked-by: Thorsten Scherer <t.scherer@eckelmann.de>
Link: https://lore.kernel.org/r/1e8d09d17848e58e8fc6a46278b5e8fb0cf4618a.1708328466.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/siox/siox.h')
0 files changed, 0 insertions, 0 deletions