diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-10-26 12:18:20 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-11-16 13:56:48 +0100 |
commit | 1865913dd590ca6d5e3207b15099a1210dd62f29 (patch) | |
tree | 200dc0ed41907922922b9a9dde392aa686c48916 /drivers/media/mmc | |
parent | media: meson-ir-tx: Simplify and improve using dev_err_probe() (diff) | |
download | linux-1865913dd590ca6d5e3207b15099a1210dd62f29.tar.xz linux-1865913dd590ca6d5e3207b15099a1210dd62f29.zip |
media: meson-ir-tx: Drop usage of platform_driver_probe()
The benefit of platform_driver_probe() here is only that the probe
function can be discarded after the driver is loaded. For an ARCH=arm
allmodconfig that's 952 bytes, for an allnoconfig + IR_MESON_TX=y it's
only 452 bytes. The downside is that the driver isn't dynamically
bindable and unbindable.
There are considerations to drop platform_driver_probe() as a concept
that isn't relevant any more today. It comes with an added complexity
that makes many users hold it wrong. (E.g. this driver didn't benefit
as much as it could as of v6.6-rc1 as meson_irtx_remove() could have
been marked with __exit.)
The advantages are not that relevant any more today, so convert this
driver to an ordinary platform driver.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/mmc')
0 files changed, 0 insertions, 0 deletions