gpio: xra1403: remove redundant of_match_ptr()
authorZhu Wang <wangzhu9@huawei.com>
Thu, 3 Aug 2023 02:13:17 +0000 (10:13 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 3 Aug 2023 13:58:54 +0000 (15:58 +0200)
commit87d0688483f56c748b37a5298bdc382df5cf8f74
tree232a95897b016538cfbebb25864eb4c5e0a414cd
parent30531e14c9490f08392001f91d6a6baeae1cbacf
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>
drivers/gpio/gpio-xra1403.c