public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [SH] remove unneeded cast
@ 2008-02-02 12:03 Stephen Rothwell
  2008-02-04  2:54 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2008-02-02 12:03 UTC (permalink / raw)
  To: Paul Mundt; +Cc: linux-sh, LKML

now that platform_device_register_simple() takes a "const chat *".

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/sh/drivers/dma/dma-api.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

This hasn't even been built, but is straight forward.

diff --git a/arch/sh/drivers/dma/dma-api.c b/arch/sh/drivers/dma/dma-api.c
index 76ed816..727126e 100644
--- a/arch/sh/drivers/dma/dma-api.c
+++ b/arch/sh/drivers/dma/dma-api.c
@@ -350,7 +350,7 @@ int register_dmac(struct dma_info *info)
 
 	BUG_ON((info->flags & DMAC_CHANNELS_CONFIGURED) && !info->channels);
 
-	info->pdev = platform_device_register_simple((char *)info->name, -1,
+	info->pdev = platform_device_register_simple(info->name, -1,
 						     NULL, 0);
 	if (IS_ERR(info->pdev))
 		return PTR_ERR(info->pdev);
-- 
1.5.3.8



-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

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

* Re: [PATCH] [SH] remove unneeded cast
  2008-02-02 12:03 [PATCH] [SH] remove unneeded cast Stephen Rothwell
@ 2008-02-04  2:54 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-02-04  2:54 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-sh, LKML

On Sat, Feb 02, 2008 at 11:03:47PM +1100, Stephen Rothwell wrote:
> now that platform_device_register_simple() takes a "const chat *".
> 
Presumably you mean 'const char *'. Also, in the future, please don't use
a subject purposely crafted to thwart git-am. Trivial patches are enough
of a nuisance without having to do things manually. I've applied it by
hand this time, grudgingly.

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

end of thread, other threads:[~2008-02-04  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-02 12:03 [PATCH] [SH] remove unneeded cast Stephen Rothwell
2008-02-04  2:54 ` Paul Mundt

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