Skip to content

Commit

Permalink
nfc: nxp-nci: Remove #ifdef CONFIG_OF
Browse files Browse the repository at this point in the history
All of_* APIs are safe if CONFIG_OF is not define.

Signed-off-by: Christophe Ricard <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
cricard13 authored and Samuel Ortiz committed Dec 29, 2015
1 parent 9135177 commit da5afe0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/nfc/nxp-nci/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ static irqreturn_t nxp_nci_i2c_irq_thread_fn(int irq, void *phy_id)
return IRQ_NONE;
}

#ifdef CONFIG_OF

static int nxp_nci_i2c_parse_devtree(struct i2c_client *client)
{
struct nxp_nci_i2c_phy *phy = i2c_get_clientdata(client);
Expand Down Expand Up @@ -304,15 +302,6 @@ static int nxp_nci_i2c_parse_devtree(struct i2c_client *client)
return 0;
}

#else

static int nxp_nci_i2c_parse_devtree(struct i2c_client *client)
{
return -ENODEV;
}

#endif

static int nxp_nci_i2c_acpi_config(struct nxp_nci_i2c_phy *phy)
{
struct i2c_client *client = phy->i2c_dev;
Expand Down

0 comments on commit da5afe0

Please sign in to comment.