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 | 169 | * struct tee_shm - shared memory object |
| 170 | − * @teedev: device used to allocate the object | |
| 171 | − * @ctx: context using the object, if NULL the context is gone | |
| 170 | + * @ctx: context using the object | |
| 172 | 171 | * @paddr: physical address of the shared memory |
| 173 | 172 | * @kaddr: virtual address of the shared memory |
| 174 | 173 | * @size: size of shared memory |
| @@ -183,7 +182,6 @@ void tee_device_unregister(struct tee_device *teedev); · 8 unmodified lines | ||
| 183 | 182 | * subsystem and from drivers that implements their own shm pool manager. |
| 184 | 183 | */ |
| 185 | 184 | struct tee_shm { |
| 186 | − struct tee_device *teedev; | |
| 187 | 185 | struct tee_context *ctx; |
| 188 | 186 | phys_addr_t paddr; |
| 189 | 187 | void *kaddr; |