diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-11-12 18:30:25 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-12-01 18:54:18 -0500 |
commit | d9b66918943eff161646ef2358101b5973ccc22c (patch) | |
tree | 3a099d92d796d391585351c2162aec8d253cdc55 /drivers/nfc | |
parent | 40af86a40cdcabd48ab9636fe13d6763a7d74bc9 (diff) |
NFC: st21nfcb: Add of_st21nfcb_i2c_match to MODULE_DEVICE_TABLE
When CONFIG_OF is define add of_st21nfcb_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/nfc')
-rw-r--r-- | drivers/nfc/st21nfcb/i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nfc/st21nfcb/i2c.c b/drivers/nfc/st21nfcb/i2c.c index c5d2427a3db2..73f7ddef57c4 100644 --- a/drivers/nfc/st21nfcb/i2c.c +++ b/drivers/nfc/st21nfcb/i2c.c | |||
@@ -401,10 +401,13 @@ static int st21nfcb_nci_i2c_remove(struct i2c_client *client) | |||
401 | return 0; | 401 | return 0; |
402 | } | 402 | } |
403 | 403 | ||
404 | #ifdef CONFIG_OF | ||
404 | static const struct of_device_id of_st21nfcb_i2c_match[] = { | 405 | static const struct of_device_id of_st21nfcb_i2c_match[] = { |
405 | { .compatible = "st,st21nfcb_i2c", }, | 406 | { .compatible = "st,st21nfcb_i2c", }, |
406 | {} | 407 | {} |
407 | }; | 408 | }; |
409 | MODULE_DEVICE_TABLE(of, of_st21nfcb_i2c_match); | ||
410 | #endif | ||
408 | 411 | ||
409 | static struct i2c_driver st21nfcb_nci_i2c_driver = { | 412 | static struct i2c_driver st21nfcb_nci_i2c_driver = { |
410 | .driver = { | 413 | .driver = { |