]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: ixp4xx: oops in ixp4xx_flash_probe
authorMarc Kleine-Budde <mkl@blackshift.org>
Wed, 8 Feb 2012 19:24:29 +0000 (20:24 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:33:33 +0000 (00:33 +0100)
commit9ceeb78fcbc38946491a69eb392ab026ec46af5c
tree69a9062178170e7ae2e9f92cb28dca19c0e5100c
parent29d37f9c7df9a2952d297777aa9f599f14901d4b
mtd: ixp4xx: oops in ixp4xx_flash_probe

In commit "88402c0 mtd: abstract last MTD partition parser argument" the
third argument of "mtd_device_parse_register()" changed from start address
of the MTD device to a pointer to a struct.

The "ixp4xx_flash_probe()" function was not converted properly, causing
an oops during boot.

This patch fixes the problem by filling the needed information into a
"struct mtd_part_parser_data" and passing it to
"mtd_device_parse_register()".

Signed-off-by: Marc Kleine-Budde <mkl@blackshift.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org [3.2+]
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/ixp4xx.c