linux/drivers/staging
Nikita Yushchenko 9099f35126 staging: most: dim2: use device release method
commit d445aa402d upstream.

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-12-17 10:14:40 +01:00
..
android
axis-fifo
board staging: board: Fix uninitialized spinlock when attaching genpd 2021-09-18 13:40:20 +02:00
clocking-wizard clk: staging: correct reference to config IOMEM to config HAS_IOMEM 2021-09-15 09:50:41 +02:00
comedi comedi: vmk80xx: fix bulk and interrupt message timeouts 2021-11-12 14:58:34 +01:00
emxx_udc
fbtft staging/fbtft: Fix backlight 2021-12-01 09:19:00 +01:00
fieldbus
fsl-dpaa2
fwserial
gasket
gdm724x staging: gdm724x: check for overflow in gdm_lte_netif_rx() 2021-07-14 16:56:45 +02:00
goldfish
greybus staging: greybus: Add missing rwsem around snd_ctl_remove() calls 2021-12-01 09:19:00 +01:00
gs_fpgaboot
hikey9xx
iio
kpc2000
ks7010 staging: ks7010: select CRYPTO_HASH/CRYPTO_MICHAEL_MIC 2021-11-18 14:04:18 +01:00
media media: allegro: ignore interrupt if mailbox is not initialized 2021-11-18 14:03:58 +01:00
most staging: most: dim2: use device release method 2021-12-17 10:14:40 +01:00
mt7621-dma
mt7621-dts staging: mt7621-dts: fix pci address for PCI memory range 2021-07-14 16:56:46 +02:00
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu
rtl8192e staging: rtl8192e: Fix use after free in _rtl92e_pci_disconnect() 2021-12-01 09:19:00 +01:00
rtl8192u staging: rtl8192u: fix control-message timeouts 2021-11-12 14:58:35 +01:00
rtl8712 staging: r8712u: fix control-message timeout 2021-11-12 14:58:35 +01:00
rtl8723bs staging: rtl8723bs: remove possible deadlock when disconnect (v2) 2021-11-26 10:39:09 +01:00
rts5208 staging: rts5208: Fix get_ms_information() heap buffer size 2021-09-18 13:40:30 +02:00
sm750fb
unisys
vc04_services staging: mmal-vchiq: Fix incorrect static vchiq_instance. 2021-07-14 16:56:39 +02:00
vme
vt6655
vt6656
wfx staging: wfx: ensure IRQ is ready before enabling it 2021-11-26 10:39:08 +01:00
wlan-ng
Kconfig
Makefile