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)
commit2b5b3221060cf7a694188929b362d7a6e41af928
treed37560a3b630c926a43402dfddd0ad2b333745b9
parent1153cb48d657388d27752fecdc1bc53432942882
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