]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: cc2520: Fix error return code in cc2520_hw_init()
authorZiyang Xuan <william.xuanziyang@huawei.com>
Sun, 20 Nov 2022 07:50:46 +0000 (15:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:30:44 +0000 (11:30 +0100)
commitd9bb0cb984a4a067cce81a062b11a1c7a569f8fc
tree7cca94ad3c2e2b118d42c51c1bc9b5003095bd10
parentf435f8d6e2623959385daa57734a9ac609f9466a
ieee802154: cc2520: Fix error return code in cc2520_hw_init()

[ Upstream commit 4d002d6a2a00ac1c433899bd7625c6400a74cfba ]

In cc2520_hw_init(), if oscillator start failed, the error code
should be returned.

Fixes: 65537e0c4468 ("ieee802154: cc2520: adds driver for TI CC2520 radio")
Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Link: https://lore.kernel.org/r/20221120075046.2213633-1-william.xuanziyang@huawei.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ieee802154/cc2520.c