5de609374b31249814280dd4d45f211990319b3f
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 154-mmc-update-compat-nodes.patch
1 diff -ruN old/drivers/mmc/host/sunxi-mci.c new/drivers/mmc/host/sunxi-mci.c
2 --- old/drivers/mmc/host/sunxi-mci.c 2014-01-22 23:41:25.000000000 +0100
3 +++ new/drivers/mmc/host/sunxi-mci.c 2014-01-28 16:55:24.000000000 +0100
4 @@ -715,8 +715,8 @@
5 }
6
7 static const struct of_device_id sunxi_mmc_of_match[] = {
8 - { .compatible = "allwinner,sun4i-mmc", },
9 - { .compatible = "allwinner,sun5i-mmc", },
10 + { .compatible = "allwinner,sun4i-a10-mmc", },
11 + { .compatible = "allwinner,sun5i-a13-mmc", },
12 { /* sentinel */ }
13 };
14 MODULE_DEVICE_TABLE(of, sunxi_mmc_of_match);
15 @@ -736,7 +736,7 @@
16 struct device_node *np = pdev->dev.of_node;
17 int ret;
18
19 - if (of_device_is_compatible(np, "allwinner,sun4i-mmc"))
20 + if (of_device_is_compatible(np, "allwinner,sun4i-a10-mmc"))
21 host->idma_des_size_bits = 13;
22 else
23 host->idma_des_size_bits = 16;