]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-ti/linuxutils/ti-linuxutils/linuxutils-BKL-fix-2.patch
meta-ti: Guard use of SOC_FAMILY to account for it being empty
[glsdk/meta-ti-glsdk.git] / recipes-ti / linuxutils / ti-linuxutils / linuxutils-BKL-fix-2.patch
1 From: Koen Kooi <k-kooi@ti.com>
2 Subject: linuxutils: fix build with 2.6.37rcX
4 ---
6 --- /tmp/sdmak.c        2010-12-05 18:43:55.000000000 +0100
7 +++ linuxutils_2_25_05_11/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c    2010-12-05 18:48:31.000000000 +0100
8 @@ -208,9 +208,12 @@
9              }
10  
11              up_read(&current->mm->mmap_sem);
12 -
13 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
14 +            sema_init(&(channels[channel].mutex),1);
15 +#else
16              init_MUTEX_LOCKED(&(channels[channel].mutex));
17 -            channels[channel].owner = filp;
18 +#endif
19 +                       channels[channel].owner = filp;
20  
21              if (copy_to_user(argp, &channel, sizeof(channel))) {
22                  return -EFAULT;