diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2018-11-30 23:30:48 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-01-16 18:43:11 +0100 |
commit | b9da9b376711f61d0e3c3e419ee348249ca2bd80 (patch) | |
tree | 45e537c014e6198198420d4fff118972885ea322 /drivers/media/pci/intel | |
parent | media: s5p-jpeg: Correct step and max values for V4L2_CID_JPEG_RESTART_INTERVAL (diff) | |
download | linux-b9da9b376711f61d0e3c3e419ee348249ca2bd80.tar.xz linux-b9da9b376711f61d0e3c3e419ee348249ca2bd80.zip |
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>
Diffstat (limited to 'drivers/media/pci/intel')
-rw-r--r-- | drivers/media/pci/intel/ipu3/ipu3-cio2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2.c b/drivers/media/pci/intel/ipu3/ipu3-cio2.c index 447baaebca44..e281e55cdca4 100644 --- a/drivers/media/pci/intel/ipu3/ipu3-cio2.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.c @@ -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, |