forked from Minki/linux
mtd: bcm_umi_nand don't specify default parsing options
Since 'cmdline, NULL' is now a default for parse_mtd_partitions, don't specify this in every driver, instead pass NULL to force parse_mtd_partitions to use default. Artem: tweaked the patch Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
2108c3bc63
commit
caf32f4e8c
@ -52,8 +52,6 @@
|
|||||||
static const __devinitconst char gBanner[] = KERN_INFO \
|
static const __devinitconst char gBanner[] = KERN_INFO \
|
||||||
"BCM UMI MTD NAND Driver: 1.00\n";
|
"BCM UMI MTD NAND Driver: 1.00\n";
|
||||||
|
|
||||||
const char *part_probes[] = { "cmdlinepart", NULL };
|
|
||||||
|
|
||||||
#if NAND_ECC_BCH
|
#if NAND_ECC_BCH
|
||||||
static uint8_t scan_ff_pattern[] = { 0xff };
|
static uint8_t scan_ff_pattern[] = { 0xff };
|
||||||
|
|
||||||
@ -496,8 +494,7 @@ static int __devinit bcm_umi_nand_probe(struct platform_device *pdev)
|
|||||||
struct mtd_partition *partition_info;
|
struct mtd_partition *partition_info;
|
||||||
|
|
||||||
board_mtd->name = "bcm_umi-nand";
|
board_mtd->name = "bcm_umi-nand";
|
||||||
nr_partitions =
|
nr_partitions = parse_mtd_partitions(board_mtd, NULL,
|
||||||
parse_mtd_partitions(board_mtd, part_probes,
|
|
||||||
&partition_info, 0);
|
&partition_info, 0);
|
||||||
|
|
||||||
if (nr_partitions <= 0) {
|
if (nr_partitions <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user