watchdog: s3c2410-wdt: Use of_match_ptr().
authorWim Van Sebroeck <wim@iguana.be>
Thu, 3 May 2012 05:24:17 +0000 (05:24 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 23 May 2012 14:17:14 +0000 (16:17 +0200)
Use of_match_ptr definition for the of_match_table.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/watchdog/s3c2410_wdt.c

index 04e5a6de47d72743b7010758f1c78230d416f221..d277cd614daf7d379462cdb9821653749f90824e 100644 (file)
@@ -40,6 +40,7 @@
 #include <linux/cpufreq.h>
 #include <linux/slab.h>
 #include <linux/err.h>
+#include <linux/of.h>
 
 #include <mach/map.h>
 
@@ -503,8 +504,6 @@ static const struct of_device_id s3c2410_wdt_match[] = {
        {},
 };
 MODULE_DEVICE_TABLE(of, s3c2410_wdt_match);
-#else
-#define s3c2410_wdt_match NULL
 #endif
 
 static struct platform_driver s3c2410wdt_driver = {
@@ -516,7 +515,7 @@ static struct platform_driver s3c2410wdt_driver = {
        .driver         = {
                .owner  = THIS_MODULE,
                .name   = "s3c2410-wdt",
-               .of_match_table = s3c2410_wdt_match,
+               .of_match_table = of_match_ptr(s3c2410_wdt_match),
        },
 };