]> Git Repo - linux.git/commit - drivers/mailbox/tegra-hsp.c
mailbox: tegra-hsp: use devm_kstrdup_const()
authorBartosz Golaszewski <[email protected]>
Wed, 28 Nov 2018 09:54:15 +0000 (10:54 +0100)
committerJassi Brar <[email protected]>
Sat, 22 Dec 2018 04:31:26 +0000 (22:31 -0600)
commita54d03ed01b4ed64c22d2b53d61d4049ec49a51f
tree0d8d5b7d27c23e48ed57960843724443998ef30c
parent9a63f0f4059955210ae74c745513332a568e9738
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 <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Signed-off-by: Jassi Brar <[email protected]>
drivers/mailbox/tegra-hsp.c
This page took 0.06254 seconds and 4 git commands to generate.