diff options
author | Xianzhong <xianzhong.li@nxp.com> | 2019-04-01 19:21:04 +0800 |
---|---|---|
committer | Xianzhong <xianzhong.li@nxp.com> | 2019-04-10 22:10:39 +0800 |
commit | ce6483c43465651469c75b0e5093bdc749866f84 (patch) | |
tree | 1c14411e922c3e7950c2bfce226ee08a25a2c582 /drivers/mxc/gpu-viv/hal/os/linux | |
parent | 97887f0cd356b32aa5085362c619a93ad3318961 (diff) |
MGS-4656 [#imx-1381] fix the wrong device check for imx8 gpu subsystem
should check imx8-gpu instead of imx8x-gpu string for i.mx8 gpu sub-system
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/os/linux')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c index a64004e5b974..8b0094103d84 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c @@ -3,6 +3,7 @@ * The MIT License (MIT) * * Copyright (c) 2014 - 2018 Vivante Corporation +* Copyright 2019 NXP * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -27,6 +28,7 @@ * The GPL License (GPL) * * Copyright (C) 2014 - 2018 Vivante Corporation +* Copyright 2019 NXP * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -1611,11 +1613,11 @@ int soc_platform_init(struct platform_driver *pdrv, #ifdef IMX_GPU_SUBSYSTEM if (of_find_compatible_node(NULL, NULL, "fsl,imx8-gpu-ss")) { use_imx_gpu_subsystem = 1; - } - if (of_find_compatible_node(NULL, NULL, "fsl,imx8x-gpu")) { - printk(KERN_ERR "Incorrect device-tree, please update dtb."); - return -EINVAL; + if (!of_find_compatible_node(NULL, NULL, "fsl,imx8-gpu")) { + printk(KERN_ERR "Incorrect device-tree, please update dtb."); + return -EINVAL; + } } #endif |