]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00240988: gpu: fix deprecated idr calls on 3.10 kernel
authorShawn Guo <shawn.guo@freescale.com>
Mon, 29 Jul 2013 03:47:05 +0000 (11:47 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:00 +0000 (09:54 +0800)
commite77c35f90b5e2039a6b3d021f548992842f8689c
tree2cd9665be0c34258f8d2a379fd044dc40b882f4a
parent8ed9381af30f4650567c10f6fd2ac35c4ed94c60
ENGR00240988: gpu: fix deprecated idr calls on 3.10 kernel

The idr calls idr_pre_get() and idr_get_new_above() are deprecated on
3.10 kernel and cause the following build issues.  Replace the calls
with the new idr_alloc() to fix the issue.

  CC      drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.o
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c: In function ‘_AllocateIntegerId’:
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:776:5: error: ‘idr_pre_get’ is deprecated (declared at include/linux/idr.h:151) [-Werror=deprecated-declarations]
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:784:5: error: ‘idr_get_new_above’ is deprecated (declared at include/linux/idr.h:166) [-Werror=deprecated-declarations]

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c