diff options
author | Nicolas Saenz Julienne <nsaenzjulienne@suse.de> | 2021-01-18 13:32:34 +0100 |
---|---|---|
committer | Nicolas Saenz Julienne <nsaenzjulienne@suse.de> | 2021-03-22 17:59:51 +0100 |
commit | 1e7c57355a3bc617fc220234889e49fe722a6305 (patch) | |
tree | 7dd59e11b9f2c8790928cb1c5672948d51d5df42 /arch/sh/include/cpu-sh4a | |
parent | a38fd8748464831584a19438cbb3082b5a2dab15 (diff) | |
download | linux-stable-1e7c57355a3bc617fc220234889e49fe722a6305.tar.gz linux-stable-1e7c57355a3bc617fc220234889e49fe722a6305.tar.bz2 linux-stable-1e7c57355a3bc617fc220234889e49fe722a6305.zip |
firmware: raspberrypi: Keep count of all consumers
When unbinding the firmware device we need to make sure it has no
consumers left. Otherwise we'd leave them with a firmware handle
pointing at freed memory.
Keep a reference count of all consumers and introduce rpi_firmware_put()
which will permit automatically decrease the reference count upon
unbinding consumer drivers.
Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'arch/sh/include/cpu-sh4a')
0 files changed, 0 insertions, 0 deletions