The ctx element in struct tee_shm is always valid. So remove the now redundant teedev element.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -167,8 +167,7 @@ void tee_device_unregister(struct tee_device *teedev); · 166 unmodified lines | |||
| 167 | 167 | ||
| 168 | /** | 168 | /** |
| 169 | * struct tee_shm - shared memory object | 169 | * struct tee_shm - shared memory object |
| 170 | * @teedev: device used to allocate the object | 170 | * @ctx: context using the object |
| 171 | * @ctx: context using the object, if NULL the context is gone | ||
| 172 | * @paddr: physical address of the shared memory | 171 | * @paddr: physical address of the shared memory |
| 173 | * @kaddr: virtual address of the shared memory | 172 | * @kaddr: virtual address of the shared memory |
| 174 | * @size: size of shared memory | 173 | * @size: size of shared memory |
| @@ -183,7 +182,6 @@ void tee_device_unregister(struct tee_device *teedev); · 8 unmodified lines | |||
| 183 | * subsystem and from drivers that implements their own shm pool manager. | 182 | * subsystem and from drivers that implements their own shm pool manager. |
| 184 | */ | 183 | */ |
| 185 | struct tee_shm { | 184 | struct tee_shm { |
| 186 | struct tee_device *teedev; | ||
| 187 | struct tee_context *ctx; | 185 | struct tee_context *ctx; |
| 188 | phys_addr_t paddr; | 186 | phys_addr_t paddr; |
| 189 | void *kaddr; | 187 | void *kaddr; |