Signed-off-by: Felix Fietkau <nbd@xxxxxxxxxxx> --- --- a/compat/compat_firmware_class.c +++ b/compat/compat_firmware_class.c @@ -20,6 +20,8 @@ #include <linux/highmem.h> #include <linux/firmware.h> +#if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE) + #define to_dev(obj) container_of(obj, struct device, kobj) MODULE_AUTHOR("Manuel Estrada Sainz"); @@ -724,3 +726,5 @@ module_exit(firmware_class_exit); EXPORT_SYMBOL(release_firmware); EXPORT_SYMBOL(request_firmware); EXPORT_SYMBOL(request_firmware_nowait); + +#endif -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html