mfd: twl-core: Remove unused add_child() and add_numbered_child() functions
authorTom Rix <trix@redhat.com>
Wed, 22 Mar 2023 11:58:38 +0000 (07:58 -0400)
committerLee Jones <lee@kernel.org>
Wed, 26 Apr 2023 10:40:33 +0000 (11:40 +0100)
commit75c0a1b3fc1c09ed67d22235900cb7e762af1dfd
tree582ffa7a2bcf3f89b373378818e2f50039708923
parent3e0475ec8d9114b600586b0bfb4056565a679a3d
mfd: twl-core: Remove unused add_child() and add_numbered_child() functions

Clang with W=1 reports:

  drivers/mfd/twl-core.c:654:30: error: unused function 'add_child' [-Werror,-Wunused-function]
  static inline struct device *add_child(unsigned mod_no, const char *name,
                               ^
add_numbered_child() and its only caller add_child() are not used, so remove them.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230322115838.2569414-1-trix@redhat.com
drivers/mfd/twl-core.c