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