serial: Samsung: Use of_match_ptr() macro
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 7 Jan 2013 04:20:42 +0000 (09:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 05:57:44 +0000 (21:57 -0800)
This eliminates having an #ifdef returning NULL for the case
when OF is disabled.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c

index 96ae08f34770ff6fa3eb14c05a0bf9ec70ad4b94..0684529eb2ad28736dd4f32a5e9d7c13b28cc8ce 100644 (file)
@@ -1729,8 +1729,6 @@ static const struct of_device_id s3c24xx_uart_dt_match[] = {
        {},
 };
 MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);
-#else
-#define s3c24xx_uart_dt_match NULL
 #endif
 
 static struct platform_driver samsung_serial_driver = {
@@ -1741,7 +1739,7 @@ static struct platform_driver samsung_serial_driver = {
                .name   = "samsung-uart",
                .owner  = THIS_MODULE,
                .pm     = SERIAL_SAMSUNG_PM_OPS,
-               .of_match_table = s3c24xx_uart_dt_match,
+               .of_match_table = of_match_ptr(s3c24xx_uart_dt_match),
        },
 };