FAILED: patch "[PATCH] media: vpif_capture: fix OF node reference imbalance" failed to apply to 5.15-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y
git checkout FETCH_HEAD
git cherry-pick -x 2282f979560af6bbc8ee2c1ee8663197312cee5b
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026072958-overhear-annually-0708@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 2282f979560af6bbc8ee2c1ee8663197312cee5b Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Tue, 7 Apr 2026 12:08:31 +0200
Subject: [PATCH] media: vpif_capture: fix OF node reference imbalance
The driver reuses the OF node of the parent device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the parent and releasing the child devices.
Fix this by using the intended helper for reusing OF nodes.
drivers/media/platform/ti/davinci/vpif_capture.c +1 -1
@@ -1498,7 +1498,7 @@ vpif_capture_get_pdata(struct platform_device *pdev,* video ports & endpoints data. */ if (pdev->dev.parent && pdev->dev.parent->of_node) - pdev->dev.of_node = pdev->dev.parent->of_node; +device_set_of_node_from_dev (&pdev->dev, pdev->dev.parent);if (!IS_ENABLED (CONFIG_OF ) || !pdev->dev.of_node)return pdev->dev.platform_data;