]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: reorganize the code under gmin_subdev_add()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 14 Jun 2020 06:36:23 +0000 (08:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 18 Jul 2020 05:06:44 +0000 (07:06 +0200)
commit1f75c9ef74f9d711e5916c06c5e6fe920f6bc5b4
treed44b5e8c6ce2f25f92d8d99a474fe2403df690be
parentfa875594eb84164102ce7c2f87fc84463becd487
media: atomisp: reorganize the code under gmin_subdev_add()

The gmin_subdev_add() currently doesn't use ACPI device
power management. In order to prepare for adding support
for it, let's shift some things, placing the PM-related
stuff at the end of the probing logic.

Let's also store the current gs on a temporary var, in
order to simplify the source code.

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