diff options
author | Vincent Cuissard <cuissard@marvell.com> | 2015-10-26 05:27:45 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-26 23:24:54 -0400 |
commit | d8e018c0b3211902af1bfb5d5b280f955a4633b7 (patch) | |
tree | bd0b2d8b5d75f401e351c473bf63cf9f51f7c6cc /drivers/nfc | |
parent | caf6e49bf6d02e6bb94df680bbe3beaf680fdefa (diff) |
NFC: nfcmrvl: update device tree bindings for Marvell NFC
Align NFC bindgins to use marvell instead of mrvl.
Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/nfcmrvl/i2c.c | 2 | ||||
-rw-r--r-- | drivers/nfc/nfcmrvl/spi.c | 2 | ||||
-rw-r--r-- | drivers/nfc/nfcmrvl/uart.c | 10 |
3 files changed, 9 insertions, 5 deletions
diff --git a/drivers/nfc/nfcmrvl/i2c.c b/drivers/nfc/nfcmrvl/i2c.c index 7a44025bdaad..78b7aa835c81 100644 --- a/drivers/nfc/nfcmrvl/i2c.c +++ b/drivers/nfc/nfcmrvl/i2c.c | |||
@@ -261,7 +261,7 @@ static int nfcmrvl_i2c_remove(struct i2c_client *client) | |||
261 | 261 | ||
262 | 262 | ||
263 | static const struct of_device_id of_nfcmrvl_i2c_match[] = { | 263 | static const struct of_device_id of_nfcmrvl_i2c_match[] = { |
264 | { .compatible = "mrvl,nfc-i2c", }, | 264 | { .compatible = "marvell,nfc-i2c", }, |
265 | {}, | 265 | {}, |
266 | }; | 266 | }; |
267 | MODULE_DEVICE_TABLE(of, of_nfcmrvl_i2c_match); | 267 | MODULE_DEVICE_TABLE(of, of_nfcmrvl_i2c_match); |
diff --git a/drivers/nfc/nfcmrvl/spi.c b/drivers/nfc/nfcmrvl/spi.c index 358660acd54a..a7faa0bcc01e 100644 --- a/drivers/nfc/nfcmrvl/spi.c +++ b/drivers/nfc/nfcmrvl/spi.c | |||
@@ -199,7 +199,7 @@ static int nfcmrvl_spi_remove(struct spi_device *spi) | |||
199 | } | 199 | } |
200 | 200 | ||
201 | static const struct of_device_id of_nfcmrvl_spi_match[] = { | 201 | static const struct of_device_id of_nfcmrvl_spi_match[] = { |
202 | { .compatible = "mrvl,nfc-spi", }, | 202 | { .compatible = "marvell,nfc-spi", }, |
203 | {}, | 203 | {}, |
204 | }; | 204 | }; |
205 | MODULE_DEVICE_TABLE(of, of_nfcmrvl_spi_match); | 205 | MODULE_DEVICE_TABLE(of, of_nfcmrvl_spi_match); |
diff --git a/drivers/nfc/nfcmrvl/uart.c b/drivers/nfc/nfcmrvl/uart.c index 4dccee2566cf..f3d041c4f249 100644 --- a/drivers/nfc/nfcmrvl/uart.c +++ b/drivers/nfc/nfcmrvl/uart.c | |||
@@ -75,9 +75,13 @@ static int nfcmrvl_uart_parse_dt(struct device_node *node, | |||
75 | struct device_node *matched_node; | 75 | struct device_node *matched_node; |
76 | int ret; | 76 | int ret; |
77 | 77 | ||
78 | matched_node = of_find_compatible_node(node, NULL, "mrvl,nfc-uart"); | 78 | matched_node = of_find_compatible_node(node, NULL, "marvell,nfc-uart"); |
79 | if (!matched_node) | 79 | if (!matched_node) { |
80 | return -ENODEV; | 80 | matched_node = of_find_compatible_node(node, NULL, |
81 | "mrvl,nfc-uart"); | ||
82 | if (!matched_node) | ||
83 | return -ENODEV; | ||
84 | } | ||
81 | 85 | ||
82 | ret = nfcmrvl_parse_dt(matched_node, pdata); | 86 | ret = nfcmrvl_parse_dt(matched_node, pdata); |
83 | if (ret < 0) { | 87 | if (ret < 0) { |