public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix watchdog
@ 2005-12-18 14:09 Komal Shah
  2005-12-19 16:20 ` Juha Yrjölä
  0 siblings, 1 reply; 4+ messages in thread
From: Komal Shah @ 2005-12-18 14:09 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

Tony,

Change .driver_name from "omap-wdt" to "omap_wdt".

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>

---Komal Shah
http://komalshah.blogspot.com/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Attachment #2: 3502949089-fix-watchdog.patch --]
[-- Type: text/plain, Size: 377 bytes --]

diff --git a/drivers/char/watchdog/omap_wdt.c b/drivers/char/watchdog/omap_wdt.c
index 9904165..8f6fa68 100644
--- a/drivers/char/watchdog/omap_wdt.c
+++ b/drivers/char/watchdog/omap_wdt.c
@@ -362,7 +362,7 @@ static struct platform_driver omap_wdt_d
 	.resume		= omap_wdt_resume,
 	.driver		= {
 		.owner	= THIS_MODULE,
-		.name	= "omap-wdt",
+		.name	= "omap_wdt",
 	},
 };
 

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] fix watchdog
  2005-12-18 14:09 [PATCH] fix watchdog Komal Shah
@ 2005-12-19 16:20 ` Juha Yrjölä
  2005-12-19 16:31   ` Komal Shah
  0 siblings, 1 reply; 4+ messages in thread
From: Juha Yrjölä @ 2005-12-19 16:20 UTC (permalink / raw)
  To: Komal Shah; +Cc: linux-omap-open-source

On Sun, 2005-12-18 at 06:09 -0800, ext Komal Shah wrote:

> Change .driver_name from "omap-wdt" to "omap_wdt".

Why?

Instead of explaining _what_ you do in the patch comments, you should
explain _why_, especially in the case of a trivial patch like this.

Cheers,
Juha

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fix watchdog
  2005-12-19 16:20 ` Juha Yrjölä
@ 2005-12-19 16:31   ` Komal Shah
  2005-12-20 11:25     ` Juha Yrjölä
  0 siblings, 1 reply; 4+ messages in thread
From: Komal Shah @ 2005-12-19 16:31 UTC (permalink / raw)
  Cc: linux-omap-open-source


> Why?
> 
> Instead of explaining _what_ you do in the patch comments, you should
> explain _why_, especially in the case of a trivial patch like 
> this.

Ok, I had made a mistake while generating the patch of omap_wdt.c for
"[PATCH] ARCH: OMAP omap-wdt: use struct platform_driver"


"-static struct device_driver omap_wdt_driver = {
- .name = "omap_wdt",
- .bus = &platform_bus_type,
- .probe = omap_wdt_probe,
- .shutdown = omap_wdt_shutdown,
- .remove = __exit_p(omap_wdt_remove),
- .suspend = omap_wdt_suspend,
- .resume = omap_wdt_resume,
+static struct platform_driver omap_wdt_driver = {
+ .probe = omap_wdt_probe,
+ .remove = omap_wdt_remove,
+ .shutdown = omap_wdt_shutdown,
+ .suspend = omap_wdt_suspend,
+ .resume = omap_wdt_resume,
+ .driver = {
+ .owner = THIS_MODULE,
+ .name = "omap-wdt",
+ },
};
 
In that I had mistakenly changed original driver name from "omap_wdt"
which matches with one in "devices.c" to "omap-wdt". So, you know the
effect...

The current patch reverts it back....

---Komal Shah
http://komalshah.blogspot.com/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fix watchdog
  2005-12-19 16:31   ` Komal Shah
@ 2005-12-20 11:25     ` Juha Yrjölä
  0 siblings, 0 replies; 4+ messages in thread
From: Juha Yrjölä @ 2005-12-20 11:25 UTC (permalink / raw)
  To: Komal Shah; +Cc: linux-omap-open-source

On Mon, 2005-12-19 at 08:31 -0800, ext Komal Shah wrote:

> In that I had mistakenly changed original driver name from "omap_wdt"
> which matches with one in "devices.c" to "omap-wdt". So, you know the
> effect...
> 
> The current patch reverts it back....

Okay, applied.

Cheers,
Juha

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-20 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-18 14:09 [PATCH] fix watchdog Komal Shah
2005-12-19 16:20 ` Juha Yrjölä
2005-12-19 16:31   ` Komal Shah
2005-12-20 11:25     ` Juha Yrjölä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox