ACPI/IORT: Make platform devices initialization code SMMU agnostic
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 20 Sep 2017 16:03:58 +0000 (17:03 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 16 Oct 2017 13:29:24 +0000 (14:29 +0100)
commit896dd2c3248422e1e7711cc582615844e2f9de86
treebf1cef3cad36faf6d4245c9c25a5c9987c6f7c0a
parente3d4939267925ab66f39123744ffb4bc74a13149
ACPI/IORT: Make platform devices initialization code SMMU agnostic

The way current IORT code initializes platform devices for SMMU nodes
is somewhat tied (mostly for naming convention) to the SMMU nodes
themselves but it need not be in that it is completely generic and
can easily be made so by structures renaming and code reshuffling.

Rework IORT platform devices initialization code to make the functions
and data structures SMMU agnostic.

No functional changes intended.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Sudeep Holla <sudeep.holla@arm.com>
drivers/acpi/arm64/iort.c