Skip to content

Commit

Permalink
watchdog: s3c2410-wdt: Use of_match_ptr().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wim Van Sebroeck committed May 23, 2012
1 parent 3ba3774 commit 3016a55
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/watchdog/s3c2410_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <linux/cpufreq.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/of.h>

#include <mach/map.h>

Expand Down Expand Up @@ -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 = {
Expand All @@ -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),
},
};

Expand Down

0 comments on commit 3016a55

Please sign in to comment.