diff options
| author | 2024-10-21 22:28:23 +0200 | |
|---|---|---|
| committer | 2024-10-22 13:58:39 -0700 | |
| commit | ddefcd779eb7ef931e47fb41a0da288286d6a431 (patch) | |
| tree | 2996f546b1695ba73228b9f8ac583acb1f0ea0fc /include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com | |
| parent | dt-bindings: input: mediatek,pmic-keys: Add compatible for MT6359 keys (diff) | |
Input: sparcspkr - use device managed memory for 'state'
Use devm_kzalloc() in bbc_bee_probe() and grover_beep_probe() to
automatically free 'state' when the device is removed. Drop the
kfree(state) calls from the probe error paths and the remove functions
accordingly.
Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20241021-input_automate_of_node_put-v3-1-cc73f636e1bc@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
