diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2012-05-03 01:24:17 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-05-23 10:17:14 -0400 |
commit | 3016a552a8314b2734aed0a1acbb983459e2acc4 (patch) | |
tree | 46b96e9e7e9c2ebd17c915401d0e516deee351e6 /drivers/watchdog | |
parent | 3ba3774b8c433fe9e91158d65cf2324ff0c5a15d (diff) |
watchdog: s3c2410-wdt: Use of_match_ptr().
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/s3c2410_wdt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 04e5a6de47d7..d277cd614daf 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/cpufreq.h> | 40 | #include <linux/cpufreq.h> |
41 | #include <linux/slab.h> | 41 | #include <linux/slab.h> |
42 | #include <linux/err.h> | 42 | #include <linux/err.h> |
43 | #include <linux/of.h> | ||
43 | 44 | ||
44 | #include <mach/map.h> | 45 | #include <mach/map.h> |
45 | 46 | ||
@@ -503,8 +504,6 @@ static const struct of_device_id s3c2410_wdt_match[] = { | |||
503 | {}, | 504 | {}, |
504 | }; | 505 | }; |
505 | MODULE_DEVICE_TABLE(of, s3c2410_wdt_match); | 506 | MODULE_DEVICE_TABLE(of, s3c2410_wdt_match); |
506 | #else | ||
507 | #define s3c2410_wdt_match NULL | ||
508 | #endif | 507 | #endif |
509 | 508 | ||
510 | static struct platform_driver s3c2410wdt_driver = { | 509 | static struct platform_driver s3c2410wdt_driver = { |
@@ -516,7 +515,7 @@ static struct platform_driver s3c2410wdt_driver = { | |||
516 | .driver = { | 515 | .driver = { |
517 | .owner = THIS_MODULE, | 516 | .owner = THIS_MODULE, |
518 | .name = "s3c2410-wdt", | 517 | .name = "s3c2410-wdt", |
519 | .of_match_table = s3c2410_wdt_match, | 518 | .of_match_table = of_match_ptr(s3c2410_wdt_match), |
520 | }, | 519 | }, |
521 | }; | 520 | }; |
522 | 521 | ||