/* Get the device and lock it for exclusive access  */
static int nand_get_device(struct mtd_info *mtd, int new_state)
/* Get the device and lock it for exclusive access  */
static int nand_get_device(struct mtd_info *mtd, int new_state)
{
	struct nand_chip *chip = mtd_to_nand(mtd);
	chip->state = new_state;
	return 0;
}