]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: zynq: Fix default value for xlnx,mio-bank
authorMichal Simek <michal.simek@xilinx.com>
Wed, 22 Jul 2020 15:46:31 +0000 (17:46 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 20 Aug 2020 07:49:20 +0000 (09:49 +0200)
DT binding is saying that default value is 0 not -1 that's why fix it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/zynq_sdhci.c

index 6505527616d1684866ef6d20b2d9bd2637a1166b..e9381b9493073227c18512b60324387466d361d9 100644 (file)
@@ -276,7 +276,7 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev)
                return PTR_ERR(priv->host->ioaddr);
 
        priv->deviceid = dev_read_u32_default(dev, "xlnx,device_id", -1);
-       priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", -1);
+       priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", 0);
 
        return 0;
 }