1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cc2538_rf: avoid explicit cast to netdev

This commit is contained in:
Jose Alamos 2021-07-09 10:36:45 +02:00
parent 227c06dd11
commit 9c2258f97c
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -214,7 +214,7 @@ void cc2538_setup(cc2538_rf_t *dev)
(void) dev;
#if IS_USED(MODULE_NETDEV_IEEE802154_SUBMAC)
extern ieee802154_dev_t cc2538_rf_dev;
netdev_register((netdev_t* )dev, NETDEV_CC2538, 0);
netdev_register(&dev->netdev.dev.netdev, NETDEV_CC2538, 0);
netdev_ieee802154_submac_init(&dev->netdev, &cc2538_rf_dev);
#endif
cc2538_init();