wok-current diff broadcom-wl/stuff/008-linux415.patch @ rev 25673
Up broadcom-wl drivers, add miss driver for mesa-dri (iris, crocus, virtio)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Mar 04 16:57:21 2024 +0000 (4 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/broadcom-wl/stuff/008-linux415.patch Mon Mar 04 16:57:21 2024 +0000 1.3 @@ -0,0 +1,46 @@ 1.4 +--- a/src/wl/sys/wl_linux.c 2017-07-17 00:11:24.000000000 +0100 1.5 ++++ b/src/wl/sys/wl_linux.c 2018-01-27 09:49:47.057799596 +0000 1.6 +@@ -93,7 +93,11 @@ 1.7 + 1.8 + #include <wlc_wowl.h> 1.9 + 1.10 ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) 1.11 ++static void wl_timer(struct timer_list *tl); 1.12 ++#else 1.13 + static void wl_timer(ulong data); 1.14 ++#endif 1.15 + static void _wl_timer(wl_timer_t *t); 1.16 + static struct net_device *wl_alloc_linux_if(wl_if_t *wlif); 1.17 + 1.18 +@@ -2297,10 +2301,17 @@ 1.19 + atomic_dec(&t->wl->callbacks); 1.20 + } 1.21 + 1.22 ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) 1.23 ++static void 1.24 ++wl_timer(struct timer_list *tl) 1.25 ++{ 1.26 ++ wl_timer_t *t = (wl_timer_t *)tl; 1.27 ++#else 1.28 + static void 1.29 + wl_timer(ulong data) 1.30 + { 1.31 + wl_timer_t *t = (wl_timer_t *)data; 1.32 ++#endif 1.33 + 1.34 + if (!WL_ALL_PASSIVE_ENAB(t->wl)) 1.35 + _wl_timer(t); 1.36 +@@ -2352,9 +2363,13 @@ 1.37 + 1.38 + bzero(t, sizeof(wl_timer_t)); 1.39 + 1.40 ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) 1.41 ++ timer_setup(&t->timer, wl_timer, 0); 1.42 ++#else 1.43 + init_timer(&t->timer); 1.44 + t->timer.data = (ulong) t; 1.45 + t->timer.function = wl_timer; 1.46 ++#endif 1.47 + t->wl = wl; 1.48 + t->fn = fn; 1.49 + t->arg = arg;