diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 1 | ||||
-rw-r--r-- | drivers/net/ieee802154/cc2520.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index f68ebba91b10..bf477851415b 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c | |||
@@ -1533,6 +1533,7 @@ static int at86rf230_probe(struct spi_device *spi) | |||
1533 | lp->hw = hw; | 1533 | lp->hw = hw; |
1534 | lp->spi = spi; | 1534 | lp->spi = spi; |
1535 | hw->parent = &spi->dev; | 1535 | hw->parent = &spi->dev; |
1536 | hw->vif_data_size = sizeof(*lp); | ||
1536 | 1537 | ||
1537 | lp->regmap = devm_regmap_init_spi(spi, &at86rf230_regmap_spi_config); | 1538 | lp->regmap = devm_regmap_init_spi(spi, &at86rf230_regmap_spi_config); |
1538 | if (IS_ERR(lp->regmap)) { | 1539 | if (IS_ERR(lp->regmap)) { |
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c index 340671b747b1..ccbb082f3391 100644 --- a/drivers/net/ieee802154/cc2520.c +++ b/drivers/net/ieee802154/cc2520.c | |||
@@ -651,6 +651,7 @@ static int cc2520_register(struct cc2520_private *priv) | |||
651 | priv->hw->priv = priv; | 651 | priv->hw->priv = priv; |
652 | priv->hw->parent = &priv->spi->dev; | 652 | priv->hw->parent = &priv->spi->dev; |
653 | priv->hw->extra_tx_headroom = 0; | 653 | priv->hw->extra_tx_headroom = 0; |
654 | priv->hw->vif_data_size = sizeof(*priv); | ||
654 | 655 | ||
655 | /* We do support only 2.4 Ghz */ | 656 | /* We do support only 2.4 Ghz */ |
656 | priv->hw->phy->channels_supported[0] = 0x7FFF800; | 657 | priv->hw->phy->channels_supported[0] = 0x7FFF800; |