OSDN Git Service

optee: model OP-TEE as a platform device/driver
authorArd Biesheuvel <ardb@kernel.org>
Mon, 9 Dec 2019 14:59:28 +0000 (15:59 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 3 Jan 2020 08:26:40 +0000 (09:26 +0100)
commitf349710e413ad29132373e170c87dd35f2b62069
treee9321db7e3aff900efeddb0b694606bfabef6e38
parentd1eef1c619749b2a57e514a3fa67d9a516ffa919
optee: model OP-TEE as a platform device/driver

To simplify adding ACPI support to the OP-TEE driver, model it as
a platform driver. This will permit us to use the generic device
property layer for parsing additional properties, regardless of
whether DT or ACPI is being used.

Note that this change will result in the OP-TEE driver to be loaded
automatically on systems that advertise the presence of OP-TEE via
the device tree.

Acked-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/core.c