mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 15:41:58 +00:00
media: ipu3-cio2: Allow probe to succeed if there are no sensors connected
The device won't be powered off on systems that have no sensors connected unless it has a driver bound to it. Allow that to happen even if there are no sensors connected to cio2. Reviewed-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com> Tested-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
19c624c6b2
commit
b9da9b3767
@ -1810,7 +1810,8 @@ static int cio2_pci_probe(struct pci_dev *pci_dev,
|
||||
|
||||
/* Register notifier for subdevices we care */
|
||||
r = cio2_notifier_init(cio2);
|
||||
if (r)
|
||||
/* Proceed without sensors connected to allow the device to suspend. */
|
||||
if (r && r != -ENODEV)
|
||||
goto fail_cio2_queue_exit;
|
||||
|
||||
r = devm_request_irq(&pci_dev->dev, pci_dev->irq, cio2_irq,
|
||||
|
Loading…
Reference in New Issue
Block a user