]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00283037 [gpu]Avoid gpu rmmod failure caused by regulator free failure
authorLoren HUANG <b02279@freescale.com>
Wed, 9 Oct 2013 08:33:39 +0000 (16:33 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 16:00:05 +0000 (18:00 +0200)
The failure is caused by duplicate regulator resource free.
New devm_xxx API will free the resource automatically after remove()
is called.

Signed-off-by: Loren HUANG <b02279@freescale.com>
Acked-by: Shawn Guo
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c

index 888f35e9d0f85f405671cc286bb4d1ec3f7b1345..ea0dc22f9375f87d2971896c9682968d8918f99b 100644 (file)
@@ -1122,7 +1122,7 @@ gckGALDEVICE_Destroy(
             pm_runtime_disable(Device->pmdev);
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)
         if (Device->gpu_regulator) {
            regulator_put(Device->gpu_regulator);
            Device->gpu_regulator = NULL;