diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-03-07 21:07:07 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-14 16:11:31 (GMT) |
commit | e3721749000e11ba3f315efc5c98bf4cd5662f99 (patch) | |
tree | ad0ee375c20e51331bf855ee9874537c33b2d040 | |
parent | 3f3c4bb5ec7c645d1151e1e8d6e56c71a050cf85 (diff) | |
download | linux-e3721749000e11ba3f315efc5c98bf4cd5662f99.tar.xz |
at86rf230: init xtal_trim with zero
This patch initialize xtal_trim value to zero. The xtal_trim property is
an optional device tree value. Currently if no xtal_trim property is
given the xtal_trim value can be contain random data, because it's a
stack variable. This patch init the xtal_trim value to zero which is
also the default value after reset for at86rf230 transceivers.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 088fa68..edf575c 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c @@ -1572,7 +1572,7 @@ static int at86rf230_probe(struct spi_device *spi) struct at86rf230_local *lp; unsigned int status; int rc, irq_type, rstn, slp_tr; - u8 xtal_trim; + u8 xtal_trim = 0; if (!spi->irq) { dev_err(&spi->dev, "no IRQ specified\n"); |