mtd: rawnand: atmel: clarify NAND addition/removal paths
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 25 Jul 2018 13:31:40 +0000 (15:31 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:46:08 +0000 (09:46 +0200)
commit7928225ffcb3d01c424983af30aba3c16ab5a585
tree90a4b0f204944a793e913897d434c64883935d3c
parente1e6255c311bae4f89bf627fe54ced88bb5caa7e
mtd: rawnand: atmel: clarify NAND addition/removal paths

No need for an atmel_nand_register() function, let's move the code in
it directly where the function was called: in
atmel_nand_controller_add_nand(). To make things consistent, also
rename atmel_nand_unregister() into
atmel_nand_controller_remove_nand().

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/atmel/nand-controller.c