NFC: dts: st21nfcb: Fix compatible string spelling to follow other drivers
authorChristophe Ricard <christophe.ricard@gmail.com>
Mon, 8 Dec 2014 21:08:07 +0000 (22:08 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 25 Jan 2015 23:09:22 +0000 (00:09 +0100)
Other drivers are following the following compatible string format for dts:
s/_/-/

Because some devices may still use the previous string, the new corrected
string is added to the of_device_id table.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Documentation/devicetree/bindings/net/nfc/st21nfcb.txt
drivers/nfc/st21nfcb/i2c.c

index 9005608cbbd1e7fe1683b15ce8fcc6bbd7b43586..bb237072dbe96acb8fdbb86997c0923540b0fde5 100644 (file)
@@ -1,7 +1,7 @@
 * STMicroelectronics SAS. ST21NFCB NFC Controller
 
 Required properties:
-- compatible: Should be "st,st21nfcb_i2c".
+- compatible: Should be "st,st21nfcb-i2c".
 - clock-frequency: I²C work frequency.
 - reg: address on the bus
 - interrupt-parent: phandle for the interrupt gpio controller
@@ -20,7 +20,7 @@ Example (for ARM-based BeagleBoard xM with ST21NFCB on I2C2):
 
        st21nfcb: st21nfcb@8 {
 
-               compatible = "st,st21nfcb_i2c";
+               compatible = "st,st21nfcb-i2c";
 
                reg = <0x08>;
                clock-frequency = <400000>;
index 01ba865863ee93dfb6843ae26d182efa288b6284..b65847c626315ed50b111965b0d6aa45fb650f2b 100644 (file)
@@ -373,6 +373,7 @@ static int st21nfcb_nci_i2c_remove(struct i2c_client *client)
 
 #ifdef CONFIG_OF
 static const struct of_device_id of_st21nfcb_i2c_match[] = {
+       { .compatible = "st,st21nfcb-i2c", },
        { .compatible = "st,st21nfcb_i2c", },
        {}
 };