linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/watchdog/s3c2410_wdt patch is missing an include
@ 2012-05-03  5:03 Wim Van Sebroeck
  0 siblings, 0 replies; only message in thread
From: Wim Van Sebroeck @ 2012-05-03  5:03 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next

Hi Stephen,

Just a quick e-mail to let you know that the below patch is missing an:
#include <linux/of.h>

I will fix this in my tree today.

Sorry,
Wim.
---
commit 4c1134cc961f825370dd9f84ce0169bd0ed97957
Author: Wim Van Sebroeck <wim@iguana.be>
Date:   Wed May 2 14:42:22 2012 +0200

    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>

diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
index 04e5a6d..686c8fc 100644
--- a/drivers/watchdog/s3c2410_wdt.c
+++ b/drivers/watchdog/s3c2410_wdt.c
@@ -503,8 +503,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 +514,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),
 	},
 };
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-03  5:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-03  5:03 drivers/watchdog/s3c2410_wdt patch is missing an include Wim Van Sebroeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).