mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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>
This commit is contained in:
parent
40af86a40c
commit
d9b6691894
1 changed files with 3 additions and 0 deletions
|
@ -401,10 +401,13 @@ static int st21nfcb_nci_i2c_remove(struct i2c_client *client)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id of_st21nfcb_i2c_match[] = {
|
||||
{ .compatible = "st,st21nfcb_i2c", },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, of_st21nfcb_i2c_match);
|
||||
#endif
|
||||
|
||||
static struct i2c_driver st21nfcb_nci_i2c_driver = {
|
||||
.driver = {
|
||||
|
|
Loading…
Reference in a new issue