diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-31 15:22:26 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2021-06-03 10:32:04 +0200 |
commit | aab53e6756caadeb908a70d5bcdf5a24baf34ad8 (patch) | |
tree | aa4d826f990c0b03638fadfa01d51696947d0907 /drivers/net/ieee802154/mrf24j40.c | |
parent | net/ieee802154: drop unneeded assignment in llsec_iter_devkeys() (diff) | |
download | linux-aab53e6756caadeb908a70d5bcdf5a24baf34ad8.tar.xz linux-aab53e6756caadeb908a70d5bcdf5a24baf34ad8.zip |
net: ieee802154: mrf24j40: Drop unneeded of_match_ptr()
Driver can be used in different environments and moreover, when compiled
with !OF, the compiler may issue a warning due to unused mrf24j40_of_match
variable. Hence drop unneeded of_match_ptr() call.
While at it, update headers block to reflect above changes.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210531132226.47081-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'drivers/net/ieee802154/mrf24j40.c')
-rw-r--r-- | drivers/net/ieee802154/mrf24j40.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c index b9be530b285f..ff83e00b77af 100644 --- a/drivers/net/ieee802154/mrf24j40.c +++ b/drivers/net/ieee802154/mrf24j40.c @@ -8,8 +8,8 @@ #include <linux/spi/spi.h> #include <linux/interrupt.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of.h> #include <linux/regmap.h> #include <linux/ieee802154.h> #include <linux/irq.h> @@ -1388,7 +1388,7 @@ MODULE_DEVICE_TABLE(spi, mrf24j40_ids); static struct spi_driver mrf24j40_driver = { .driver = { - .of_match_table = of_match_ptr(mrf24j40_of_match), + .of_match_table = mrf24j40_of_match, .name = "mrf24j40", }, .id_table = mrf24j40_ids, |