mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge branch 'yaml-bindings-for-v4.21' into dt/next
This commit is contained in:
commit
acc2038738
386 changed files with 5990 additions and 3056 deletions
|
|
@ -207,7 +207,7 @@ comment "Disk-On-Chip Device Drivers"
|
|||
config MTD_DOCG3
|
||||
tristate "M-Systems Disk-On-Chip G3"
|
||||
select BCH
|
||||
select BCH_CONST_PARAMS
|
||||
select BCH_CONST_PARAMS if !MTD_NAND_BCH
|
||||
select BITREVERSE
|
||||
help
|
||||
This provides an MTD device driver for the M-Systems DiskOnChip
|
||||
|
|
|
|||
|
|
@ -221,7 +221,14 @@ static struct sa_info *sa1100_setup_mtd(struct platform_device *pdev,
|
|||
info->mtd = info->subdev[0].mtd;
|
||||
ret = 0;
|
||||
} else if (info->num_subdev > 1) {
|
||||
struct mtd_info *cdev[nr];
|
||||
struct mtd_info **cdev;
|
||||
|
||||
cdev = kmalloc_array(nr, sizeof(*cdev), GFP_KERNEL);
|
||||
if (!cdev) {
|
||||
ret = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
|
||||
/*
|
||||
* We detected multiple devices. Concatenate them together.
|
||||
*/
|
||||
|
|
@ -230,6 +237,7 @@ static struct sa_info *sa1100_setup_mtd(struct platform_device *pdev,
|
|||
|
||||
info->mtd = mtd_concat_create(cdev, info->num_subdev,
|
||||
plat->name);
|
||||
kfree(cdev);
|
||||
if (info->mtd == NULL) {
|
||||
ret = -ENXIO;
|
||||
goto err;
|
||||
|
|
|
|||
|
|
@ -590,7 +590,6 @@ retry:
|
|||
|
||||
/**
|
||||
* panic_nand_wait - [GENERIC] wait until the command is done
|
||||
* @mtd: MTD device structure
|
||||
* @chip: NAND chip structure
|
||||
* @timeo: timeout
|
||||
*
|
||||
|
|
|
|||
|
|
@ -996,7 +996,7 @@ static int cqspi_direct_read_execute(struct spi_nor *nor, u_char *buf,
|
|||
err_unmap:
|
||||
dma_unmap_single(nor->dev, dma_dst, len, DMA_FROM_DEVICE);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static ssize_t cqspi_read(struct spi_nor *nor, loff_t from,
|
||||
|
|
|
|||
|
|
@ -3250,12 +3250,14 @@ static int spi_nor_init_params(struct spi_nor *nor,
|
|||
memcpy(&sfdp_params, params, sizeof(sfdp_params));
|
||||
memcpy(&prev_map, &nor->erase_map, sizeof(prev_map));
|
||||
|
||||
if (spi_nor_parse_sfdp(nor, &sfdp_params))
|
||||
if (spi_nor_parse_sfdp(nor, &sfdp_params)) {
|
||||
nor->addr_width = 0;
|
||||
/* restore previous erase map */
|
||||
memcpy(&nor->erase_map, &prev_map,
|
||||
sizeof(nor->erase_map));
|
||||
else
|
||||
} else {
|
||||
memcpy(params, &sfdp_params, sizeof(*params));
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue