1
0
Fork 0

memory: ti-emif-sram: remove unused variable

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: 8428e5ad75 ("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>
hifive-unleashed-5.1
Arnd Bergmann 2017-12-06 09:50:20 -08:00 committed by Santosh Shilimkar
parent 8428e5ad75
commit 84a1695a6f
1 changed files with 0 additions and 1 deletions

View 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;