OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7979e1
)
NFC: st21nfca: Add of_st21nfca_i2c_match to MODULE_DEVICE_TABLE
author
Christophe Ricard
<christophe.ricard@gmail.com>
Wed, 12 Nov 2014 23:30:22 +0000
(
00:30
+0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 1 Dec 2014 23:29:11 +0000
(
00:29
+0100)
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>
drivers/nfc/st21nfca/i2c.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st21nfca/i2c.c
b/drivers/nfc/st21nfca/i2c.c
index
ff6dacb
..
22bc8c2
100644
(file)
--- 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)
return 0;
}
+#ifdef CONFIG_OF
static const struct of_device_id of_st21nfca_i2c_match[] = {
{ .compatible = "st,st21nfca_i2c", },
{}
};
+MODULE_DEVICE_TABLE(of, of_st21nfca_i2c_match);
+#endif
static struct i2c_driver st21nfca_hci_i2c_driver = {
.driver = {