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)
commit6a8214aa3d323d2e185523ea112116759bc3c5ce
tree6b5ea204d2c477d328c7f81168ed3fbb02e9bb3e
parentb0bb6903c8fca2d5ebef1f8ae63d420eb931bb1e
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