From 5ab6ade834808da692bdd264e97a64eea6dbd1f6 Mon Sep 17 00:00:00 2001 From: Mykyta Dorokhin Date: Mon, 7 Feb 2022 14:42:03 +0200 Subject: mtcap3: fix sysfs radio attributes for no-radio devices --- io-module/machine/mtcap3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io-module/machine/mtcap3.c b/io-module/machine/mtcap3.c index 5b2871a..0be5be6 100644 --- a/io-module/machine/mtcap3.c +++ b/io-module/machine/mtcap3.c @@ -415,9 +415,9 @@ static struct attribute *mtcap3_0_0_platform_attributes[] = { &dev_attr_led_lora_gpio_mtcap3.attr, &dev_attr_led_power_gpio_mtcap3.attr, - /* Set to NULL if no radio -- should be 1st radio attribute */ - &dev_attr_radio_reset_mtcap3.attr, + /* Set to NULL if no radio -- radio_power should be 1st radio attribute */ &dev_attr_radio_power_mtcap3.attr, + &dev_attr_radio_reset_mtcap3.attr, &dev_attr_radio_power_monitor_mtcap3.attr, &dev_attr_radio_reset_backoffs.attr, -- cgit v1.2.3