diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2018-11-28 10:54:15 +0100 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2018-12-21 22:31:26 -0600 |
commit | a54d03ed01b4ed64c22d2b53d61d4049ec49a51f (patch) | |
tree | 0d8d5b7d27c23e48ed57960843724443998ef30c /include | |
parent | 9a63f0f4059955210ae74c745513332a568e9738 (diff) |
mailbox: tegra-hsp: use devm_kstrdup_const()
Use devm_kstrdup_const() in the tegra-hsp driver. This mostly serves as
an example of how to use this new routine to shrink driver code.
Also use devm_kzalloc() instead of regular kzalloc() to shrink the
driver even more.
Doorbell objects are only removed in the driver's remove callback so
it's safe to convert all memory allocations to devres.
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions