[PATCH v3 0/5] media: platform: nxp: Trivial cleanup pathces

Frank Li Frank.li at nxp.com
Mon Jan 12 07:06:02 PST 2026


On Mon, Dec 15, 2025 at 05:49:51PM -0500, Frank Li wrote:
> Some trivial patch to reduce goto at probe functions.
>
> Signed-off-by: Frank Li <Frank.Li at nxp.com>
> ---

Laurent Pinchart and Philipp Zabel:

	Happy new year. Any comments about this trivial changes?

Frank

> Changes in v3:
> - rebase to v6.19-rc1
> - avoid use __free() == NULL according to cleanup.h
> - Link to v2: https://lore.kernel.org/r/20251119-cam_cleanup-v2-0-df732cc83ff1@nxp.com
>
> Changes in v2:
> - add new patch media: nxp: Add dev_err_probe() to all error paths in *async_register() helpers
> - detail change see each patch's change log.
> - Link to v1: https://lore.kernel.org/r/20251117-cam_cleanup-v1-0-6cd42872db79@nxp.com
>
> ---
> Frank Li (5):
>       media: nxp: use devm_mutex_init() simple code
>       media: nxp: use dev_err_probe() to simplify code
>       media: nxp: imx8-isi: use devm_pm_runtime_enable() to simplify code
>       media: nxp: use cleanup  __free(fwnode_handle) simplify code
>       media: nxp: Add dev_err_probe() to all error paths in *async_register() helpers
>
>  drivers/media/platform/nxp/imx-mipi-csis.c         | 54 ++++++-------
>  drivers/media/platform/nxp/imx-pxp.c               |  5 +-
>  drivers/media/platform/nxp/imx7-media-csi.c        | 14 ++--
>  .../media/platform/nxp/imx8-isi/imx8-isi-core.c    | 16 ++--
>  drivers/media/platform/nxp/imx8mq-mipi-csi2.c      | 88 ++++++++++------------
>  drivers/media/platform/nxp/mx2_emmaprp.c           |  7 +-
>  6 files changed, 83 insertions(+), 101 deletions(-)
> ---
> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
> change-id: 20250807-cam_cleanup-b6d90ba9dac3
>
> Best regards,
> --
> Frank Li <Frank.Li at nxp.com>
>



More information about the linux-arm-kernel mailing list