]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: jedec_probe: initialise make sector erase command variable
authorAntony Pavlov <antony@niisi.msk.ru>
Fri, 11 Feb 2011 10:00:37 +0000 (13:00 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Mar 2011 19:49:51 +0000 (12:49 -0700)
commitf8c332b31d1048a34cf6d6197d094076b8e39e64
tree44f74b3cd137d3a973857e45f7989bf5df6d6b28
parent663c4358da748c42d7bc9faa5a6d506653861c51
mtd: jedec_probe: initialise make sector erase command variable

commit ceabebb2bd2672f709e4454e16bc6042732e2dfe upstream.

In the commit 08968041bef437ec363623cd3218c2b083537ada
 (mtd: cfi_cmdset_0002: make sector erase command variable)
introdused a field sector_erase_cmd. In the same commit initialisation
of cfi->sector_erase_cmd made in cfi_chip_setup()
(file drivers/mtd/chips/cfi_probe.c), so the CFI chip has no problem:

...
        cfi->cfi_mode = CFI_MODE_CFI;
        cfi->sector_erase_cmd = CMD(0x30);
...

But for the JEDEC chips this initialisation is not carried out,
so the JEDEC chips have sector_erase_cmd == 0.

This patch adds the missing initialisation.

Signed-off-by: Antony Pavlov <antony@niisi.msk.ru>
Acked-by: Guillaume LECERF <glecerf@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/chips/jedec_probe.c