]> git.baikalelectronics.ru Git - kernel.git/commit
Input: iqs62x-keys - drop unused device node references
authorJeff LaBundy <jeff@labundy.com>
Sat, 17 Sep 2022 19:09:22 +0000 (14:09 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Sep 2022 05:17:43 +0000 (22:17 -0700)
commite60ea5a1c6f0421911b0aa1fecb60f4812f9e62e
treea2d3a5245f6613b08469695922aa5474c6a91d72
parenta0bf49be1f3f8f6cb6a974ae9e545245b80734e5
Input: iqs62x-keys - drop unused device node references

Each call to device/fwnode_get_named_child_node() must be matched
with a call to fwnode_handle_put() once the corresponding node is
no longer in use. This ensures a reference count remains balanced
in the case of dynamic device tree support.

Currently, the driver never calls fwnode_handle_put(). This patch
adds the missing calls.

Fixes: 892f4f175865 ("input: keyboard: Add support for Azoteq IQS620A/621/622/624/625")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/YyYbYvlkq5cy55dc@nixie71
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/iqs62x-keys.c