On Tue Jul 7 18:10:02 2026 +0100, Sean Young wrote:
> Once the interrupt handler is enabled, priv->rdev can be used. Ensure
> it is setup correctly so there is no race condition.
> 
> Fixes: a84fcdaa9058 ("[media] rc: Introduce hix5hd2 IR transmitter driver")
> Signed-off-by: Sean Young <[email protected]>
> Cc: [email protected]
> Reviewed-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Sean Young

 drivers/media/rc/ir-hix5hd2.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

---

diff --git a/drivers/media/rc/ir-hix5hd2.c b/drivers/media/rc/ir-hix5hd2.c
index 1b061e4a3dcf..aa3de4d57a58 100644
--- a/drivers/media/rc/ir-hix5hd2.c
+++ b/drivers/media/rc/ir-hix5hd2.c
@@ -316,6 +316,9 @@ static int hix5hd2_ir_probe(struct platform_device *pdev)
        if (ret < 0)
                goto clkerr;
 
+       priv->rdev = rdev;
+       priv->dev = dev;
+
        if (devm_request_irq(dev, priv->irq, hix5hd2_ir_rx_interrupt,
                             0, pdev->name, priv) < 0) {
                dev_err(dev, "IRQ %d register failed\n", priv->irq);
@@ -323,8 +326,6 @@ static int hix5hd2_ir_probe(struct platform_device *pdev)
                goto regerr;
        }
 
-       priv->rdev = rdev;
-       priv->dev = dev;
        platform_set_drvdata(pdev, priv);
 
        return ret;
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to