tee: make tee_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Tue, 13 Feb 2024 14:46:25 +0000 (11:46 -0300)
committerArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2024 16:25:09 +0000 (17:25 +0100)
commit469f6acd9a538ea963e2d4d13ba721a7ad1c1813
tree5dff4e2d3be5fad22a057cc331974f9ef0b68d3b
parent19a4eaaef2f42ae54611fc92189faf0c7bf70dee
tee: make tee_bus_type const

Since commit d492cc2573a0 ("driver core: device.h: make struct
bus_type a const *"), the driver core can properly handle constant
struct bus_type, move the tee_bus_type variable to be a constant
structure as well, placing it into read-only memory which can not be
modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/tee/tee_core.c
include/linux/tee_drv.h