media: marvell: Simplify remove callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 26 Mar 2023 14:30:51 +0000 (16:30 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 11 Apr 2023 14:59:15 +0000 (16:59 +0200)
commit94eca0c00aaf5c7f2440effb1587d01a6562198c
tree97ca853762b37008ba613d0fcf9953cdbd55912e
parentc65cee0b875098716fb4198aa331bac04ec0d737
media: marvell: Simplify remove callback

Fold mmpcam_remove() into its only caller mmpcam_platform_remove(). Note
that cam can never be zero, as the probe function calls
platform_set_drvdata() with a non-NULL argument (or returns an error
code in which case .remove() won't be called).

Also use mmpcam_remove() as the function name for the remove callback to
align to mmpcam_probe() for .probe().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/marvell/mmp-driver.c