]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: remove the "chip" parameter in nand_get_device()
authorHuang Shijie <b32955@freescale.com>
Mon, 19 Nov 2012 06:43:30 +0000 (14:43 +0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 3 Dec 2012 14:36:51 +0000 (16:36 +0200)
commite0c3d1fb58fe211fa20b3f2b079f448e99e61256
tree6b5ea204d2c477d328c7f81168ed3fbb02e9bb3e
parent16af68d97f8fef49e4c9b8e4550b5ba09ecef063
mtd: remove the "chip" parameter in nand_get_device()

There are two reasons to remove the "chip" parameter in nand_get_device():

[1] The nand_release_device() does not have the "chip" parameter.
[2] We can get the nand_chip by the mtd->priv field.

This patch removes the "chip" parameter in nand_get_device().

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/nand_base.c