提交 6f8c5369 编写于 作者: V Vincent Cuissard 提交者: Samuel Ortiz

NFC: nfcmrvl: remove unneeded CONFIG_OF switches

Signed-off-by: NVincent Cuissard <cuissard@marvell.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 b2fe288e
...@@ -254,8 +254,6 @@ void nfcmrvl_chip_halt(struct nfcmrvl_private *priv) ...@@ -254,8 +254,6 @@ void nfcmrvl_chip_halt(struct nfcmrvl_private *priv)
gpio_set_value(priv->config.reset_n_io, 0); gpio_set_value(priv->config.reset_n_io, 0);
} }
#ifdef CONFIG_OF
int nfcmrvl_parse_dt(struct device_node *node, int nfcmrvl_parse_dt(struct device_node *node,
struct nfcmrvl_platform_data *pdata) struct nfcmrvl_platform_data *pdata)
{ {
...@@ -278,16 +276,6 @@ int nfcmrvl_parse_dt(struct device_node *node, ...@@ -278,16 +276,6 @@ int nfcmrvl_parse_dt(struct device_node *node,
return 0; return 0;
} }
#else
int nfcmrvl_parse_dt(struct device_node *node,
struct nfcmrvl_platform_data *pdata)
{
return -ENODEV;
}
#endif
EXPORT_SYMBOL_GPL(nfcmrvl_parse_dt); EXPORT_SYMBOL_GPL(nfcmrvl_parse_dt);
MODULE_AUTHOR("Marvell International Ltd."); MODULE_AUTHOR("Marvell International Ltd.");
......
...@@ -67,8 +67,6 @@ static struct nfcmrvl_if_ops uart_ops = { ...@@ -67,8 +67,6 @@ static struct nfcmrvl_if_ops uart_ops = {
.nci_update_config = nfcmrvl_uart_nci_update_config .nci_update_config = nfcmrvl_uart_nci_update_config
}; };
#ifdef CONFIG_OF
static int nfcmrvl_uart_parse_dt(struct device_node *node, static int nfcmrvl_uart_parse_dt(struct device_node *node,
struct nfcmrvl_platform_data *pdata) struct nfcmrvl_platform_data *pdata)
{ {
...@@ -102,16 +100,6 @@ static int nfcmrvl_uart_parse_dt(struct device_node *node, ...@@ -102,16 +100,6 @@ static int nfcmrvl_uart_parse_dt(struct device_node *node,
return 0; return 0;
} }
#else
static int nfcmrvl_uart_parse_dt(struct device_node *node,
struct nfcmrvl_platform_data *pdata)
{
return -ENODEV;
}
#endif
/* /*
** NCI UART OPS ** NCI UART OPS
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册