media: intel/ipu6: Move isys_remove() close to isys_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 May 2024 07:59:56 +0000 (09:59 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 28 May 2024 06:00:14 +0000 (08:00 +0200)
commit266b44ec9a26dd2ad5d1dfcbb2f7f4e2c10da3fb
treec75e3216a41310d00b51868982499abb71040cc9
parentfe61b2906bd046535f4ef7dfcd69562f531ccd38
media: intel/ipu6: Move isys_remove() close to isys_probe()

In preparation to fixing a leak in isys_probe(), move isys_remove().
The fix will introduce a new function that will also be called from
isys_remove(). The code needs to be rearranged to avoid a forward
declaration.

Having the .remove function close to the .probe function is also more
standard.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/intel/ipu6/ipu6-isys.c