This is already handled by the of_match_ptr macro.
Signed-off-by: Alexander Aring <[email protected]>
---
drivers/net/ieee802154/at86rf230.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ieee802154/at86rf230.c
b/drivers/net/ieee802154/at86rf230.c
index 694facb..bc9dd10 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1226,7 +1226,6 @@ static int at86rf230_remove(struct spi_device *spi)
return 0;
}
-#if IS_ENABLED(CONFIG_OF)
static const struct of_device_id at86rf230_of_match[] = {
{ .compatible = "atmel,at86rf230", },
{ .compatible = "atmel,at86rf231", },
@@ -1235,7 +1234,6 @@ static const struct of_device_id at86rf230_of_match[] = {
{ },
};
MODULE_DEVICE_TABLE(of, at86rf230_of_match);
-#endif
static const struct spi_device_id at86rf230_device_id[] = {
{ .name = "at86rf230", },
--
1.9.1
------------------------------------------------------------------------------
_______________________________________________
Linux-zigbee-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel