linux/drivers/staging/most
Nikita Yushchenko d445aa402d staging: most: dim2: use device release method
Commit 723de0f917 ("staging: most: remove device from interface
structure") moved registration of driver-provided struct device to
the most subsystem. This updated dim2 driver as well.

However, struct device passed to register_device() becomes refcounted,
and must not be explicitly deallocated, but must provide release method
instead. Which is incompatible with managing it via devres.

This patch makes the device structure allocated without devres, adds
device release method, and moves device destruction there.

Fixes: 723de0f917 ("staging: most: remove device from interface structure")
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Link: https://lore.kernel.org/r/20211005143448.8660-2-nikita.yoush@cogentembedded.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-13 14:27:55 +02:00
..
dim2 staging: most: dim2: use device release method 2021-10-13 14:27:55 +02:00
Documentation staging: most: Documentation: move ABI description files out of staging area 2020-03-24 13:42:44 +01:00
i2c staging: most: i2c: Fix a little doc-rot 2021-05-10 11:19:25 +02:00
net staging: most: net: Fix some kernel-doc formatting issues 2021-05-10 11:19:25 +02:00
video staging/most: Remove all strcpy() uses in favor of strscpy() 2021-07-27 15:10:41 +02:00
Kconfig drivers: most: add ALSA sound driver 2021-03-23 10:03:13 +01:00
Makefile drivers: most: add ALSA sound driver 2021-03-23 10:03:13 +01:00
TODO