diff options
Diffstat (limited to 'drivers/nfc/st95hf/core.c')
-rw-r--r-- | drivers/nfc/st95hf/core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index 2b26f762fbc3..01acb6e53365 100644 --- a/drivers/nfc/st95hf/core.c +++ b/drivers/nfc/st95hf/core.c | |||
@@ -1074,6 +1074,12 @@ static const struct spi_device_id st95hf_id[] = { | |||
1074 | }; | 1074 | }; |
1075 | MODULE_DEVICE_TABLE(spi, st95hf_id); | 1075 | MODULE_DEVICE_TABLE(spi, st95hf_id); |
1076 | 1076 | ||
1077 | static const struct of_device_id st95hf_spi_of_match[] = { | ||
1078 | { .compatible = "st,st95hf" }, | ||
1079 | { }, | ||
1080 | }; | ||
1081 | MODULE_DEVICE_TABLE(of, st95hf_spi_of_match); | ||
1082 | |||
1077 | static int st95hf_probe(struct spi_device *nfc_spi_dev) | 1083 | static int st95hf_probe(struct spi_device *nfc_spi_dev) |
1078 | { | 1084 | { |
1079 | int ret; | 1085 | int ret; |
@@ -1260,6 +1266,7 @@ static struct spi_driver st95hf_driver = { | |||
1260 | .driver = { | 1266 | .driver = { |
1261 | .name = "st95hf", | 1267 | .name = "st95hf", |
1262 | .owner = THIS_MODULE, | 1268 | .owner = THIS_MODULE, |
1269 | .of_match_table = of_match_ptr(st95hf_spi_of_match), | ||
1263 | }, | 1270 | }, |
1264 | .id_table = st95hf_id, | 1271 | .id_table = st95hf_id, |
1265 | .probe = st95hf_probe, | 1272 | .probe = st95hf_probe, |