Commit a21512d1 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz

nfc: pn544: Remove #ifdef CONFIG_OF

All of_* APIs are safe if CONFIG_OF is not define.
Signed-off-by: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent da5afe06
...@@ -938,8 +938,6 @@ static int pn544_hci_i2c_acpi_request_resources(struct i2c_client *client) ...@@ -938,8 +938,6 @@ static int pn544_hci_i2c_acpi_request_resources(struct i2c_client *client)
return 0; return 0;
} }
#ifdef CONFIG_OF
static int pn544_hci_i2c_of_request_resources(struct i2c_client *client) static int pn544_hci_i2c_of_request_resources(struct i2c_client *client)
{ {
struct pn544_i2c_phy *phy = i2c_get_clientdata(client); struct pn544_i2c_phy *phy = i2c_get_clientdata(client);
...@@ -1015,15 +1013,6 @@ static int pn544_hci_i2c_of_request_resources(struct i2c_client *client) ...@@ -1015,15 +1013,6 @@ static int pn544_hci_i2c_of_request_resources(struct i2c_client *client)
return ret; return ret;
} }
#else
static int pn544_hci_i2c_of_request_resources(struct i2c_client *client)
{
return -ENODEV;
}
#endif
static int pn544_hci_i2c_probe(struct i2c_client *client, static int pn544_hci_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment