]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: split add from find subdev
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 21 Jun 2020 07:42:47 +0000 (09:42 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 18 Jul 2020 05:14:51 +0000 (07:14 +0200)
commit8aaebb6d72351630916ba4728d2b1e13ac9c6de9
treed37560a3b630c926a43402dfddd0ad2b333745b9
parentbd1de3cb2da5dbed8db781d366bebe8a1b9e1111
media: atomisp: split add from find subdev

There's only one place where a subdev can be added: when the
sensor driver registers it. Trying to do it elsewhere will
cause problems, as the detection code needs to access the
I2C bus in order to probe some things.

Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c