Ver Fonte

sh: remove unneeded cast

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

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Stephen Rothwell há 17 anos atrás
pai
commit
222dc791e1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      arch/sh/drivers/dma/dma-api.c

+ 1 - 1
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);