Make sure to drop the reference to the secure monitor device taken by of_find_device_by_node() when looking up its driver data on behalf of other drivers (e.g. during probe).
…
How do you think about to use the attribute “put_device” for this purpose? https://elixir.bootlin.com/linux/v6.16/source/include/linux/device.h#L1140
Regards, Markus