media: ipu3-cio2: Request IRQ earlier
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 20 Dec 2022 14:01:20 +0000 (16:01 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Apr 2024 13:15:30 +0000 (15:15 +0200)
commita069f79bfa6ec1ea0744981ea8425c8a25322579
treeabb5c0f149314480e5aa10a2436c172ac72762a5
parentd8c9a6e204f1466d228428174ce6d40ccdfb583e
media: ipu3-cio2: Request IRQ earlier

Call devm_request_irq() before registering the async notifier, as otherwise
it would be possible to use the device before the interrupts could be
delivered to the driver.

Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/intel/ipu3/ipu3-cio2.c