--- zzzz-none-000/linux-4.4.271/drivers/base/power/sysfs.c 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/drivers/base/power/sysfs.c 2023-01-11 09:25:41.000000000 +0000 @@ -95,6 +95,7 @@ const char power_group_name[] = "power"; EXPORT_SYMBOL_GPL(power_group_name); +#if !defined(CONFIG_AVM_THIN_SYSFS) static const char ctrl_auto[] = "auto"; static const char ctrl_on[] = "on"; @@ -213,6 +214,7 @@ static DEVICE_ATTR(autosuspend_delay_ms, 0644, autosuspend_delay_ms_show, autosuspend_delay_ms_store); +#endif static ssize_t pm_qos_resume_latency_show(struct device *dev, struct device_attribute *attr, @@ -633,6 +635,7 @@ }; static struct attribute *runtime_attrs[] = { +#if !defined(CONFIG_AVM_THIN_SYSFS) #ifndef CONFIG_PM_ADVANCED_DEBUG &dev_attr_runtime_status.attr, #endif @@ -640,6 +643,7 @@ &dev_attr_runtime_suspended_time.attr, &dev_attr_runtime_active_time.attr, &dev_attr_autosuspend_delay_ms.attr, +#endif NULL, }; static struct attribute_group pm_runtime_attr_group = {