]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
auxdisplay: arm-charlcd: drop of_match_ptr()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Dec 2025 12:53:38 +0000 (13:53 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Dec 2025 13:52:18 +0000 (14:52 +0100)
The general recommendation is to not use of_match_ptr(). Drop it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/arm-charlcd.c

index eeabbca7923df2fb75c8db14769f02571694f068..6a83eacb458c45e747cdc5b52b6316837347f577 100644 (file)
@@ -9,8 +9,8 @@
  */
 #include <linux/init.h>
 #include <linux/interrupt.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
-#include <linux/of.h>
 #include <linux/completion.h>
 #include <linux/delay.h>
 #include <linux/io.h>
@@ -328,7 +328,7 @@ static struct platform_driver charlcd_driver = {
                .name = DRIVERNAME,
                .pm = &charlcd_pm_ops,
                .suppress_bind_attrs = true,
-               .of_match_table = of_match_ptr(charlcd_match),
+               .of_match_table = charlcd_match,
        },
 };
 builtin_platform_driver_probe(charlcd_driver, charlcd_probe);