gpio: altera-a10sr: remove redundant of_match_ptr
authorZhu Wang <wangzhu9@huawei.com>
Wed, 2 Aug 2023 02:24:03 +0000 (10:24 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 3 Aug 2023 13:58:45 +0000 (15:58 +0200)
commita374467ae68c23d4c9e9d5009207c1414469c5b0
treebe50f6667bf0ac16e6c80415a55eb2fdd25161a6
parent9c573074895f9e2da3cbe92605dce5d765b311b7
gpio: altera-a10sr: remove redundant of_match_ptr

The driver depends on CONFIG_OF, so it is not necessary to use
of_match_ptr() here.

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. Hence we remove of_match_ptr().

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-altera-a10sr.c