On 2014-05-15 11:44, Stefan Hellermann wrote:
> CONFIG_HOTPLUG was removed in Linux kernel 3.11, so remove
> the #ifdef in button-hotplug and gpio-button-hotplug kernel modules.
> 
> Reported in Trac ticket #16413.
> 
> The Patch is untested on kernel version < 3.11
> 
> Signed-off-by: Stefan Hellermann <ste...@the2masters.de>
> ---
>  package/kernel/button-hotplug/src/button-hotplug.c           | 4 ++--
>  package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/package/kernel/button-hotplug/src/button-hotplug.c 
> b/package/kernel/button-hotplug/src/button-hotplug.c
> index 8f84eb1..a11fd46 100644
> --- a/package/kernel/button-hotplug/src/button-hotplug.c
> +++ b/package/kernel/button-hotplug/src/button-hotplug.c
> @@ -208,7 +208,7 @@ static int button_hotplug_create_event(const char *name, 
> unsigned long seen,
>  
>  /* 
> -------------------------------------------------------------------------*/
>  
> -#ifdef       CONFIG_HOTPLUG
> +#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0) ) || defined ( 
> CONFIG_HOTPLUG )
I'd prefer a patch that removes the #ifdef instead of adding more
conditions. OpenWrt wouldn't really work without hotplug support anyway.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to