DORMANTno replies

[PATCH] mtd: spear-smi: Update compatible property

From: Viresh Kumar <hidden>
Date: 2012-03-23 08:48:07
Subsystem: memory technology devices (mtd), open firmware and flattened device tree bindings, the rest · Maintainers: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

SPEAr SMI controller version is same for all SPEAr machines. Thus we don't need
per machine compatible property in driver.

Thus this patch updates compatible entry to: "st,spear-smi", so that it
works for all SPEAr machines.

Signed-off-by: Viresh Kumar <redacted>
---
 .../devicetree/bindings/mtd/spear_smi.txt          |    4 ++--
 drivers/mtd/devices/spear_smi.c                    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/mtd/spear_smi.txt b/Documentation/devicetree/bindings/mtd/spear_smi.txt
index 7248aad..80dfd96 100644
--- a/Documentation/devicetree/bindings/mtd/spear_smi.txt
+++ b/Documentation/devicetree/bindings/mtd/spear_smi.txt
@@ -1,7 +1,7 @@
 * SPEAr SMI
 
 Required properties:
-- compatible : "st,spear600-smi"
+- compatible : "st,spear-smi"
 - reg : Address range of the mtd chip
 - #address-cells, #size-cells : Must be present if the device has sub-nodes
   representing partitions.
@@ -16,7 +16,7 @@ Optional properties:
 Example:
 
 	smi: flash@fc000000 {
-		compatible = "st,spear600-smi";
+		compatible = "st,spear-smi";
 		#address-cells = <1>;
 		#size-cells = <1>;
 		reg = <0xfc000000 0x1000>;
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c
index bebce11..f392594 100644
--- a/drivers/mtd/devices/spear_smi.c
+++ b/drivers/mtd/devices/spear_smi.c
@@ -1113,7 +1113,7 @@ int spear_smi_resume(struct platform_device *pdev)
 
 #ifdef CONFIG_OF
 static const struct of_device_id spear_smi_id_table[] = {
-	{ .compatible = "st,spear600-smi" },
+	{ .compatible = "st,spear-smi" },
 	{}
 };
 MODULE_DEVICE_TABLE(of, spear_smi_id_table);
-- 
1.7.8.110.g4cb5d
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help