mtd: pasemi_nand.c: remove superfluous name cast

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 28 00:59:01 EST 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8ca14e12a75216060e5dfbfe28a5efc5c230e08c
Commit:     8ca14e12a75216060e5dfbfe28a5efc5c230e08c
Parent:     7c4bb4f8f8ad6d3cc338d59c00f674a571ae7ca6
Author:     Geert Uytterhoeven <geert at linux-m68k.org>
AuthorDate: Tue Nov 12 20:07:16 2013 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 3 11:22:09 2014 -0800

    mtd: pasemi_nand.c: remove superfluous name cast
    
    device_driver.name is "const char *"
    
    Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
    Acked-by: Olof Johansson <olof at lixom.net>
    Cc: linux-mtd at lists.infradead.org
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 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 4d17436..90f871a 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,
 	},



More information about the linux-mtd-cvs mailing list