[PATCH 03/12] mtd: pasemi_nand.c: Remove superfluous name cast

Geert Uytterhoeven geert at linux-m68k.org
Tue Nov 12 14:07:16 EST 2013


device_driver.name is "const char *"

Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
Cc: Olof Johansson <olof at lixom.net>
Cc: linux-mtd at lists.infradead.org
---
 drivers/mtd/nand/pasemi_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/pasemi_nand.c b/drivers/mtd/nand/pasemi_nand.c
index 4d174366a0f0..90f871acb0ef 100644
--- a/drivers/mtd/nand/pasemi_nand.c
+++ b/drivers/mtd/nand/pasemi_nand.c
@@ -223,7 +223,7 @@ MODULE_DEVICE_TABLE(of, pasemi_nand_match);
 static struct platform_driver pasemi_nand_driver =
 {
 	.driver = {
-		.name = (char*)driver_name,
+		.name = driver_name,
 		.owner = THIS_MODULE,
 		.of_match_table = pasemi_nand_match,
 	},
-- 
1.7.9.5




More information about the linux-mtd mailing list