Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3016a552 authored by Wim Van Sebroeck's avatar Wim Van Sebroeck
Browse files

watchdog: s3c2410-wdt: Use of_match_ptr().



Use of_match_ptr definition for the of_match_table.

Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
Acked-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent 3ba3774b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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),
	},
};