Skip to content

Commit ebb528d

Browse files
author
Boris Brezillon
committed
mtd: nand: gpmi: Kill gpmi_nand_exit()
The only user of gpmi_nand_exit() is gpmi_nand_remove(). Move its content to the caller. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Han Xu <han.xu@nxp.com>
1 parent 4d02423 commit ebb528d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎drivers/mtd/nand/gpmi-nand/gpmi-nand.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,12 +1936,6 @@ static int gpmi_set_geometry(struct gpmi_nand_data *this)
19361936
return gpmi_alloc_dma_buffer(this);
19371937
}
19381938

1939-
static void gpmi_nand_exit(struct gpmi_nand_data *this)
1940-
{
1941-
nand_release(nand_to_mtd(&this->nand));
1942-
gpmi_free_dma_buffer(this);
1943-
}
1944-
19451939
static int gpmi_init_last(struct gpmi_nand_data *this)
19461940
{
19471941
struct nand_chip *chip = &this->nand;
@@ -2141,7 +2135,8 @@ static int gpmi_nand_remove(struct platform_device *pdev)
21412135
{
21422136
struct gpmi_nand_data *this = platform_get_drvdata(pdev);
21432137

2144-
gpmi_nand_exit(this);
2138+
nand_release(nand_to_mtd(&this->nand));
2139+
gpmi_free_dma_buffer(this);
21452140
release_resources(this);
21462141
return 0;
21472142
}

0 commit comments

Comments
 (0)