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)
commit6391c63e61a76dfe4020432368cc2a7aa1273b41
treed44b5e8c6ce2f25f92d8d99a474fe2403df690be
parentc2942c4363ceb8bbce12c2db8f42d8bbbf5bb0ef
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