]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
memory: ti-emif-sram: remove unused variable
authorArnd Bergmann <arnd@arndb.de>
Wed, 6 Dec 2017 17:50:20 +0000 (09:50 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 6 Dec 2017 17:50:20 +0000 (09:50 -0800)
The newly introduced driver causes a harmless warning for a variable
that was evidently never used:

drivers/memory/ti-emif-pm.c: In function 'ti_emif_remove':
drivers/memory/ti-emif-pm.c:303:17: error: unused variable 'dev' [-Werror=unused-variable]

Fixes: 8428e5ad750d ("memory: ti-emif-sram: introduce relocatable suspend/resume handlers")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/memory/ti-emif-pm.c

index 4ea1514fb9b2dbd9265f870095bcce26b5e177ad..62a86c4bcd0bfa4c6893bdee93b921f6af66f715 100644 (file)
@@ -300,7 +300,6 @@ fail_free_sram:
 
 static int ti_emif_remove(struct platform_device *pdev)
 {
-       struct device *dev = &pdev->dev;
        struct ti_emif_data *emif_data = emif_instance;
 
        emif_instance = NULL;