diff options
| author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-11-12 18:30:22 -0500 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-12-01 18:29:11 -0500 |
| commit | 17e40107985c06cfce87f1c19346c69f00a877c3 (patch) | |
| tree | 549061c456d95812c7d53594b57c474bb11a89dc /drivers | |
| parent | d7979e130ebb02bafdbfc084312656eec1387911 (diff) | |
NFC: st21nfca: Add of_st21nfca_i2c_match to MODULE_DEVICE_TABLE
When CONFIG_OF is define add of_st21nfca_i2c_match to
MODULE_DEVICE_TABLE.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/nfc/st21nfca/i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c index ff6dacb4d482..22bc8c2311c2 100644 --- a/drivers/nfc/st21nfca/i2c.c +++ b/drivers/nfc/st21nfca/i2c.c | |||
| @@ -687,10 +687,13 @@ static int st21nfca_hci_i2c_remove(struct i2c_client *client) | |||
| 687 | return 0; | 687 | return 0; |
| 688 | } | 688 | } |
| 689 | 689 | ||
| 690 | #ifdef CONFIG_OF | ||
| 690 | static const struct of_device_id of_st21nfca_i2c_match[] = { | 691 | static const struct of_device_id of_st21nfca_i2c_match[] = { |
| 691 | { .compatible = "st,st21nfca_i2c", }, | 692 | { .compatible = "st,st21nfca_i2c", }, |
| 692 | {} | 693 | {} |
| 693 | }; | 694 | }; |
| 695 | MODULE_DEVICE_TABLE(of, of_st21nfca_i2c_match); | ||
| 696 | #endif | ||
| 694 | 697 | ||
| 695 | static struct i2c_driver st21nfca_hci_i2c_driver = { | 698 | static struct i2c_driver st21nfca_hci_i2c_driver = { |
| 696 | .driver = { | 699 | .driver = { |
