diff options
author | Zhu Wang <wangzhu9@huawei.com> | 2023-08-03 05:13:17 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-08-03 16:58:54 +0300 |
commit | 87d0688483f56c748b37a5298bdc382df5cf8f74 (patch) | |
tree | 232a95897b016538cfbebb25864eb4c5e0a414cd /drivers/gpio/gpio-sim.c | |
parent | 30531e14c9490f08392001f91d6a6baeae1cbacf (diff) | |
download | linux-87d0688483f56c748b37a5298bdc382df5cf8f74.tar.xz |
gpio: xra1403: remove redundant of_match_ptr()
The driver depends on CONFIG_OF, so it is not necessary to use
of_match_ptr() here, and __maybe_unused can also be removed.
Even for drivers that do not depend on CONFIG_OF, it's almost always
better to leave out the of_match_ptr(), since the only thing it can
possibly do is to save a few bytes of .text if a driver can be used both
with and without it.
Signed-off-by: Zhu Wang <wangzhu9@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-sim.c')
0 files changed, 0 insertions, 0 deletions