mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mfd: Fix ASIC3 SD Host Controller Configuration size
The size of the TC6380AF SD Host Controller Configuration area is 0x200 bytes (assuming registers are aligned on 32-bit boundaries), not 0x400 bytes. Source: Toshiba TC6380AF Specification sections 4.2 and 4.3.1 Signed-off-by: Paul Parsons <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
d910774f13
commit
74e32d1b68
2 changed files with 3 additions and 1 deletions
|
|
@ -856,7 +856,8 @@ static int __init asic3_mfd_probe(struct platform_device *pdev,
|
|||
|
||||
/* MMC */
|
||||
asic->tmio_cnf = ioremap((ASIC3_SD_CONFIG_BASE >> asic->bus_shift) +
|
||||
mem_sdio->start, 0x400 >> asic->bus_shift);
|
||||
mem_sdio->start,
|
||||
ASIC3_SD_CONFIG_SIZE >> asic->bus_shift);
|
||||
if (!asic->tmio_cnf) {
|
||||
ret = -ENOMEM;
|
||||
dev_dbg(asic->dev, "Couldn't ioremap SD_CONFIG\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue